jBPM如何获取WorkItemHandler结果 [英] jBPM How to get WorkItemHandler results

查看:67
本文介绍了jBPM如何获取WorkItemHandler结果的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我有一个将由WorkItemHandler运行的服务节点.

I have a service node which will be runned by a WorkItemHandler.

executeWorkItem()结束时,我这样做:

manager.completeWorkItem(workItem.getId(), resultMap);

如何从其他地方访问resultMap?在哪里举行?

How can I access from other places the resultMap? Where is is held?

推荐答案

您要如何处理?您想在哪里访问它?

What would you like to do with it? Where would you like to have access to it?

这些结果将传递到流程实例,因此在用于启动该服务的任务中,您可以将这些结果映射回流程变量,以便可以在流程实例的其余部分中使用它们.例如,如果处理程序返回一个称为结果"的结果,并且将该结果参数映射到变量(使用结果映射),则可以在脚本或决策中使用此变量,或将其映射为下一个服务的输入等

These results are passed to the process instance, so in the task that was used to start this service, you can map these results back into process variables, so they can be used in the rest of your process instance. For example, if your handler returns a result called "outcome" and you map that result parameter to a variable (using result mapping), you can then use this variable in scripts, or decisions, or map it as an input for a next service, etc.

克里斯

这篇关于jBPM如何获取WorkItemHandler结果的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆