我可以在 jbpm v3.2 中向任务节点添加运行时转换吗?
对于流程定义中的每个任务节点,我想动态(以编程方式)向每个任务节点添加自转换(从同一节点转换到同一节点)。您能告诉我这可以作为 JBPM v3.2 的一部分来完成吗?如果我选择这种方法,是否会出现任何问题?
For every task node in a process definition, i want to dynamically (programtically) add a self transition (from and to transition to the same node) to each task node. Can you tell me can this be done as part of JBPM v3.2 and if there are any issues that can crop up if i choose this approach ?
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
您不需要动态地执行此操作。您可以直接在您的工作流程中执行此操作。
你的动态是什么意思?当您正在部署工作流程时或已经在处理它时?
如果是在部署时,在调用deployProcessDefinition方法之前,您可以获取将要部署的xml并在部署之前对其进行编辑。
如果是在您已经在处理时,我可以想到 2 个可能的选项:
对于这两个选项,您应该注意 ProcessLog 的问题。我不知道 JBPM 在为并不存在的转换编写日志时是否会遇到问题。
You don't need to do this dinamically. You can do it straight into your workflow.
What do you mean dinamically? When you are deploying the workflow or while you are already processing it?
If it is while deploying, before you call the deployProcessDefinition method, you can take the xml it will deploy and edit it before making the deploy.
If it is while you are already processing, I can think of 2 possible options:
For both options, you should pay atention for problems with the ProcessLog. I don't know if JBPM will have a problem for writing the logs for transitions that don't really exist.