07-04-2017 04:01 PM
Hello !!
Please i need help ... again
I need to obtain de Documentation from my Service Task.... is there anyway to do this?
Thanks for your time
07-05-2017 06:41 AM
Does it work?
BpmnModel bpmnModel = repositoryService.getBpmnModel(execution.getProcessDefinitionId());
String documentation = bpmnModel.getFlowElement(execution.getCurrentActivityId()).getDocumentation();
07-04-2017 05:59 PM
public class TestJavaDelegate implements JavaDelegate {
@Override
public void execute(DelegateExecution execution) {
String documentation = execution.getCurrentFlowElement().getDocumentation();
System.out.println(documentation);
}
}
07-05-2017 06:26 AM
Thanks daisuke-yoshimoto but im working with activiti 5.22 and the code doesn´t works
"cannot find symbol
symbol: method getCurrentFlowElement()
location: variable execution of type DelegateExecution"
Please help me !! is there another way ?
07-05-2017 06:41 AM
Does it work?
BpmnModel bpmnModel = repositoryService.getBpmnModel(execution.getProcessDefinitionId());
String documentation = bpmnModel.getFlowElement(execution.getCurrentActivityId()).getDocumentation();
07-05-2017 07:42 AM
Yes!!! It's working
Thanks for help me!!!!
Explore our Alfresco products with the links below. Use labels to filter content by product module.