Methods / Methods for Manual Work Items (Tasks) |
Web Services
Creates a manual work item.
public virtual WFEvent CreateWorkItem(string ActivityInstanceID, string WorkToPerform, string UserID, WFTimeDuration Length, string ClientData)
Name | Description |
---|---|
ActivityInstanceID |
|
WorkToPerform |
|
UserID |
|
Length |
|
ClientData |
|
WFEvent object that provides the status of the transaction. The possible statuses are:
IWFWorkflowService svc = GetWorkflowService(); string ActivityInstanceID = … // for example, "0172460E0AF943C6A6520044452BCAB3"; string WorkToPerform = … // for example, "SubmitRequest"; //different WorkToPerform can be used if desired WFTimeDuration Length = new WFTimeDuration("15", WFTimeUnit.DAY, true );// business time string UserID = @"[DOMAIN NAME]\username"; //the participant of the linked work item try { WFEventevt = svc.CreateWorkItem(ActivityInstanceID, WorkToPerform, UserID, Length, null); } catch(Exception ex) { Console.WriteLine("Failed! " + ShUtil.GetSoapMessage(ex)); }
3.2.0.4 and higher