Hi there,
I would like to automatically trigger the execution of a Java program as soon as a specific task within a workflow is reached / completed. Furthermore, I need to pass the PROC_INST_ID_ of the current process as a parameter into this program. Is there any example available on how to do this or could anyone give me some hints?
Right now, I am working with the community edition.
Best,
Mario
Hi ,
Please refer this documentation https://www.activiti.org/userguide/#bpmnJavaServiceTask
You can get your parameter like this
public class ToUppercase implements JavaDelegate {
public void execute(DelegateExecution execution) throws Exception {
String var = (String) execution.getVariable("input");
var = var.toUpperCase();
execution.setVariable("input", var);
}
}
Thanks,
Kalpesh
Ask for and offer help to other Alfresco Process Services and Activiti Users and members of the Alfresco team.
By using this site, you are agreeing to allow us to collect and use cookies as outlined in Alfresco’s Cookie Statement and Terms of Use (and you have a legitimate interest in Alfresco and our products, authorizing us to contact you in such methods). If you are not ok with these terms, please do not use this website.