Search Results for

    Show / Hide Table of Contents

    Method CreateProcess

    CreateProcess(String, ProcessContract, Boolean)

    Create a process

    Declaration
    ProcessContract CreateProcess(string connectionId, ProcessContract process, bool startImmediate)
    Parameters
    Type Name Description
    System.String connectionId

    The connection id to identify your connection. See also ConnectionId

    ProcessContract process

    Process to create

    System.Boolean startImmediate

    Start immediate the process

    Returns
    Type Description
    ProcessContract

    Created process

    Examples

    POST http://YourServerName/InfoShare/Json/Process/CreateProcess

    Example for create a process.

    {
       "connectionId": "831ff0cd-6a36-4831-ae98-c66f54e8079b",
       "process": {
         "Properties": [{            
           "PropertyTypeId": "3ecaf07d-c1cf-e911-a939-00155d290a08",
           "Values": ["12564"] }, {
           "PropertyTypeId": "2cdacc4e-15d0-e911-a93a-00155d290a08",
           "Values": ["Rechnung"] }],
         "Comments": [],
         "AccessRightsEnumList": [],
         "CustomProperties": null,
         "CompletedTasks": [],
         "DocumentIds": ["6ba7a04c-a0df-e911-a949-00155d290a08"],
         "ProcessTemplateId": "24a927d1-21d2-e911-a93c-00155d290a08",
         "DueDate": "2019-09-27T14:25:28",
         "PriorityEnum": "Normal" },
       "startImmediate": false }
    }

    Response:

    {
       "CreateProcessResult": {
         "AccessRightsEnumList": ["CheckOut", "EditProcess", "Delete"],
         "CheckOutStateEnum": "CheckedOutExclusive",
         "CheckOutUserId": "0100a003-38a7-11d8-a902-0050bf427e8f",
         "Comments": [],
         "CompletedDate": null,
         "CompletedTasks": [],
         "CreatedDate": "2019-09-25T14:25:30",
         "CurrentTask": null,
         "CustomProperties": [],
         "DocumentIds": ["6ba7a04c-a0df-e911-a949-00155d290a08"],
         "DueDate": "2019-09-27T14:25:28",
         "Id": "ce3fee52-a0df-e911-a949-00155d290a08",
         "Name": {
           "Values": [{
             "Culture": "de",
             "Text": "Rechnungen" }, {
             "Culture": "en",
             "Text": "Invoice" }] },
         "PluginStream": [],
         "PriorityEnum": "Normal",
         "ProcessTemplateId": "24a927d1-21d2-e911-a93c-00155d290a08",
         "Properties": [{              
           "PropertyTypeId": "2cdacc4e-15d0-e911-a93a-00155d290a08",
           "Values": ["Rechnung"] }, {
           "PropertyTypeId": "01000a00-38a7-11d8-a902-0050bf427e8f",
           "Values": ["Invoice"] }, {
           "PropertyTypeId": "01000000-d596-485b-ace6-d64647a94277",
           "Values": ["0100a000-38a7-11d8-a902-0050bf427e8f"] }, {
           "PropertyTypeId": "01000002-d596-485b-ace6-d64647a94277",
           "Values": ["0100a003-38a7-11d8-a902-0050bf427e8f"] }, {
           "PropertyTypeId": "01000003-d596-485b-ace6-d64647a94277",
           "Values": ["ce3fee52-a0df-e911-a949-00155d290a08"] }, {
           "PropertyTypeId": "01000001-d596-485b-ace6-d64647a94277",
           "Values": ["2019-09-25T14:25:00"] }, {
           "PropertyTypeId": "0100003d-38a7-11d8-a902-0050bf427e8f",
           "Values": ["24a927d1-21d2-e911-a93c-00155d290a08"] }],
         "ProtectionDomainId": "0100a000-38a7-11d8-a902-0050bf427e8f",
         "StatusEnum": "Open" }
    }
    Exceptions
    Type Condition
    ServiceException

    The connection id {connectionId} isn't valid or has expired (10008)

    ServiceException

    Unknown data type for property type (10035)

    ServiceException

    String was not recognized as a valid DateTime: {dateTimeValue}. Expected format {expectedFormat} (10059)

    ServiceException

    Property type not found {propertyTypeId} (10034)

    ServiceException

    Verification code is needed: Verification code not yet verified (10152)

    ServiceException

    Failure while inserting value: '{propertyTypeValue}' into propertyType: {propertyTypeId} (10190)

    ServiceException

    Property type {propertyTypeId} value is too long: {value} (10179)

    ServiceException

    Web service is not available {url} (10220)

    ServiceException

    Web service failed {soapException} (10221)

    ServiceException

    User {user.LoginName} can not be assigned to list {assignedUsers} because {user.LoginName} is not in the predefined user list (10259)

    ServiceException

    User not found {userId} (10047)

    Back to top Copyright © Kendox