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
Solved! Go to Solution.
Does it work?
BpmnModel bpmnModel = repositoryService.getBpmnModel(execution.getProcessDefinitionId());
String documentation = bpmnModel.getFlowElement(execution.getCurrentActivityId()).getDocumentation();
public class TestJavaDelegate implements JavaDelegate {
@Override
public void execute(DelegateExecution execution) {
String documentation = execution.getCurrentFlowElement().getDocumentation();
System.out.println(documentation);
}
}
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 ?
Does it work?
BpmnModel bpmnModel = repositoryService.getBpmnModel(execution.getProcessDefinitionId());
String documentation = bpmnModel.getFlowElement(execution.getCurrentActivityId()).getDocumentation();
Yes!!! It's working
Thanks for help me!!!!
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.