Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
我正在尝试将一些输出值从一个服务任务传递给其他服务任务。在这里,我可以从服务任务调用 java 类并能够运行程序,但程序输出显示在命令提示符下。我需要将输出值传递给其他服务任务以继续流程。如果有任何建议意味着请告诉我。
您可以在服务任务中调用 java 类并将输出值设置为全局变量,然后在其他服务任务中您可以从该变量中读取存储的值。
runtimeService.setVariable(executionId,variableName,variableValue); runtimeService.getVariable(processId,variableName);
使用过程变量
delegateExecution.setVariable("foo", "bar");