使用 java 代码在 BPEL 中创建任务
我正在创建一个 BPEL 流程,其中我的要求是我需要根据一些输入创建一个任务并将其分配给特定用户,然后从该流程中出来。
早些时候我的印象是我将使用人工任务活动。但是当我使用该任务时,该任务将在其本身的流程中创建,并且实例将一直停留在那里,直到人工干预(BPEL 流程正在等待结果。)。
有什么方法可以使用 Java 嵌入活动并从 Java 代码创建任务,“我知道如何将作业分配给特定用户”。请告诉我。 阿布舍克
I am creating a BPEL process, in which my requirement is I need to create a task based on some inputs and assign it to partucular user, and then come out from that flow.
earlier I had impression that i will use Human task Activity. but when I am using that Task will be created in the itself process and instance will stucked out over there untill human intervention(the BPEL process is waiting on result.).
is there any way I can use Java embed activity and create task from java code, "I know how to assign a job to particular user". please tell me.
Abhishek
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(2)
您也可以通过单击 + 号打开人工任务流。这是一个普通的范围,只是有不同的图标。您应该在其中看到
Invoke
和Receive
。如果这是您想要的,只需删除“接收”即可忽略它。You can open the Human Task Flow as well by clicking the + sign. It is a normal scope, just with a different icon. In there you should see an
Invoke
andReceive
. Just drop the Receive to ignore it, if this is what you want.阅读并点击此链接 http://docs.oracle.com/ cd/E12483_01/integrate.1013/b28987/phase10.htm。基本上,您所要做的就是在复合文件中创建一个人工任务,然后将其链接到您的 BPEL 流程。完成后,将人工任务图标拖放到流程中。也不要像 ZeissS 所说的那样删除接收,而是继续以并行流程进行处理,这样当人工任务完成时,您就不会遇到异常并回滚。
如果您确实想在 java 进程中执行此操作,请获取符合 WSHumanTask 的 WSDL 并根据 OASIS 标准调用相关操作。
Read and follow this link http://docs.oracle.com/cd/E12483_01/integrate.1013/b28987/phase10.htm. Basically all you have to do is create a human task in your composite file and then link it to your BPEL process. Once you are done drop the human task icon in the flow. Also do not delete the receive as ZeissS says but continue to process in a parallel flow as then you won't get an exception and roll back when the human task finishes.
If you do want to do this in a java process grab the WSHumanTask compliant WSDL and invoke the relevant operations as per the OASIS standard.