Delegations: Is there any possibility to add Delegations via Web Service?


#1

You can use the WorkflowGen Web Service API method to add a new delegation for the current connected user.
See http://server:port/wfgen/ws/processesruntime.asmx?op=AddDelegation

You can, if needed, specify a BeginDate and a EndDate.
The same parameters could be used in HTTP GET and POST.

<?xml version="1.0" encoding="utf-8"?> 
<soap:Envelope xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:soap="http://schemas.xmlsoap.org/soap/envelope/"> 
<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>