微信公众号搜"智元新知"关注
微信扫一扫可直接关注哦!

Cordys 流程启动与结束调用了哪些WebService


(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.

<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 &amp;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.

<GetTask xmlns="http://schemas.cordys.com/notification/workflow/1.0"> <TaskId>005056C0-0008-11E0-EE96-BDEF09C61FD0</TaskId> <Target type="user">cn=JDoe,o=vanenburg.com</Target> <RetrievePossibleActions>false</RetrievePossibleActions> <ReturnTaskData>true</ReturnTaskData> </GetTask>

(4):提交一个流程

PerformTaskAction

This method is used to perform an action on the task.

<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

版权声明:本文内容由互联网用户自发贡献,该文观点与技术仅代表作者本人。本站仅提供信息存储空间服务,不拥有所有权,不承担相关法律责任。如发现本站有涉嫌侵权/违法违规的内容, 请发送邮件至 [email protected] 举报,一经查实,本站将立刻删除。

相关推荐