You can use the WorkflowGen Web Service API method to add a new delegation for the current connected user:
http://server:port/wfgen/ws/processesruntime.asmx?op=AddDelegation
If needed, you can specify a BeginDate
and an EndDate
. The same parameters could be used in HTTP GET and POST.
<?xml version="1.0" encoding="UTF-8"?>
<soap:Envelope xmlns:soap="http://schemas.xmlsoap.org/soap/envelope/" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
<soap:Header>
<AddDelegationHeader xmlns="http://www.workflowgen.com/services">
<BeginDate>dateTime</BeginDate>
<EndDate>dateTime</EndDate>
<NotifyDelegate>boolean</NotifyDelegate>
</AddDelegationHeader>
</soap:Header>
<soap:Body>
<AddDelegation xmlns="http://www.workflowgen.com/services">
<processId>int</processId>
<participantId>int</participantId>
<delegateUserId>int</delegateUserId>
</AddDelegation>
</soap:Body>
</soap:Envelope>