Method CreateProcessTemplate
CreateProcessTemplate(String, ProcessTemplateContract)
Create a process template
Declaration
string CreateProcessTemplate(string connectionId, ProcessTemplateContract processTemplate)
Parameters
Type | Name | Description |
---|---|---|
System.String | connectionId | The connection id to identify your connection. See also ConnectionId |
ProcessTemplateContract | processTemplate | ProcessTemplate to create |
Returns
Type | Description |
---|---|
System.String | The created process template id |
Examples
POST http://YourServerName/InfoShare/Json/Common/CreateProcessTemplate
Example for create a process template.{
"connectionId": "cf481e87-eaa8-4696-8766-5e38cac70f6b",
"processTemplate": {
"Name": {
"Values": [
{
"Culture": "de",
"Text": "Nasenbärenbestandsevaluierungsvorlage"
},
{
"Culture": "es",
"Text": "Plantilla para la evaluación de la población de coatíes"
}
]
},
"ProcessName": {
"Values": [
{
"Culture": "de",
"Text": "Nasenbärenbestandsevaluierung"
},
{
"Culture": "es",
"Text": "Evaluación de la población de coatíes"
}
]
},
"ProtectionDomainId": "0100a000-38a7-11d8-a902-0050bf427e8f",
"TaskTemplates": [
{
"Name": {
"Values": [
{
"Culture": "de",
"Text": "Bestandsermittlung Guatemala"
},
{
"Culture": "es",
"Text": "Inventario Guatemala"
}
]
},
"AssignedUserIds": [
"0100a003-38a7-11d8-a902-0050bf427e8f"
],
"FreeSelectAssignedUsers": false,
"DoNotAllowDeputyRepresentation": true,
"CopyProcessCommentsToDocumentBlog": true,
"FormIds": [
"5859fee6-02e2-ee11-bb7a-00155d053806"
]
}
],
"DoNotAllowDeputyRepresentation": true
}
}
Response:
{
"CreateProcessTemplateResult": "ff075074-09e2-ee11-bb7a-00155d053806"
}
Exceptions
Type | Condition |
---|---|
ServiceException | The connection id {connectionId} isn't valid or has expired (10008) |
ServiceException | Property type not found {propertyTypeId} (10034) |
ServiceException | Unknown data type for property type (10035) |
ServiceException | String was not recognized as a valid DateTime: {dateTimeValue}. Expected format {expectedFormat} (10059) |
ServiceException | Name is not unique for culture ({culture}): {name} (10066) |
ServiceException | The administrative context {administrativeContext} is already checked out by user {displayLoginName} (10129) |
ServiceException | Verification code is needed: Verification code not yet verified (10152) |
ServiceException | Failure while inserting value: '{propertyTypeValue}' into propertyType: {propertyTypeId} (10190) |
ServiceException | Task template already exists {tasktemplateId} (10208) |
ServiceException | Property type {propertyTypeId} value is too long: {value} (10179) |
ServiceException | User {user.LoginName} can not be assigned to list {listName} because user is not in the predefined user/group list (10260) |