(1):提交流程:
ExecuteProcess
SOAP Request
<SOAP:Envelope xmlns:SOAP="http://schemas.xmlsoap.org/soap/envelope/">
<SOAP:Body>
<ExecuteProcess type="" xmlns="http://schemas.cordys.com/bpm/execution/1.0">
<type>definition</type>
<receiver>Business Process Models/EmployeeRecruitmentProcess_vcmdemo10.bpm</receiver>
<source>Run from Studio</source>
<modelSpace>organization</modelSpace>
<monitor activityMonitorLevel="" activityMonitoring="" level="">OFF</monitor>
<crashRecovery>OFF</crashRecovery>
<priority>1</priority>
<message/>
</ExecuteProcess>
</SOAP:Body>
</SOAP:Envelope>
(2):获取所有InBox里面的所有 tasks
GetTasks |
This method is used to retrieve all the tasks based on certain criteria.
SOAP Request
<GetTasks xmlns="http://schemas.cordys.com/notification/workflow/1.0">
<TaskIdentifiers>
<TaskIdentifierType id="15d5a9e3-f7c3-4a44-99cb-7146f478616c" name="SalesOrder"/>
</TaskIdentifiers>
<Criteria>
<Query>(Task.StartDate IS NULL OR Task.StartDate &lt;=:sdate ) AND (Task.State =:tstate AND SalesOrder.Id like :id)
</Query>
<Parameters>
<Parameter name="tstate" type="Task.State" value="CREATED"/>
<Parameter name="id" type="SalesOrder.Id" value="%1%"/>
<Parameter name="sdate" type="Task.StartDate" value="2008-12-31T08:25:45.45"/>
</Parameters>
</Criteria>
<OrderBy>SalesOrder.Id</OrderBy>
<AssignedBy>cn=npraveen,cn=organizational users,o=system,cn=cordys,cn=signfp1,o=vanenburg.com</AssignedBy>
<Target type="worklist">d9a48178-592c-453a-8d69-d7e13ca2bd78</Target>
<ShowNonWorkableItems>false</ShowNonWorkableItems>
<cursor id="" maxRows="" numRows="" position=""/>
<ReturnTaskData>true</ReturnTaskData>
</GetTasks>
(3):打开一个流程
GetTask |
This method is used to retrieve the task details based on the task ID.
SOAP Request
<GetTask xmlns="http://schemas.cordys.com/notification/workflow/1.0">
<TaskId>005056C0-0008-11E0-EE96-BDEF09C61FD0</TaskId>
<Target type="user">cn=JDoe,cn=organizational users,o=system,
cn=cordys,cn=signfp1,o=vanenburg.com</Target>
<RetrievePossibleActions>false</RetrievePossibleActions>
<ReturnTaskData>true</ReturnTaskData>
</GetTask>
(4):提交一个流程
PerformTaskAction |
This method is used to perform an action on the task.
SOAP Request
<PerformTaskAction xmlns="http://schemas.cordys.com/notification/workflow/1.0">
<TaskId>{7F806D59-D288-4C4D-975F-52B7BF42DBAC}</TaskId>
<Action>START</Action>
<Memo>Sample Memo</Memo>
<Data/>
</PerformTaskAction>
总结 :对Inbox 的task的操作 API 请参考
Notification APIs
This section contains the following SOAP APIs:
- AssignTask
- ClaimTask
- DelegateTask
- GetAllWorklistsForUser
- GetNotification
- GetNotifications
- GetPossibleActionsForTask
- GetTask
- GetTasks
- GetUsersByWorklist
- HumanInteraction
- PerformTaskAction
- SendNotification
- TransferTask
- UpdateMemo
- ViewMemosByTask
- SetAutoDelegationsForUser
- GetAutoDelegatesForUser
- DeleteAutoDelegationsForUser
- SearchHumanTasks
- GetTaskIdentifiers