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
Does it work?
BpmnModel bpmnModel = repositoryService.getBpmnModel(execution.getProcessDefinitionId());String documentation = bpmnModel.getFlowElement(execution.getCurrentActivityId()).getDocumentation();
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); }}
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 ?
Yes!!! It's working
Thanks for help me!!!!