AnsweredAssumed Answered

need custom attributes in flowelement in getbpmnmodel

Question asked by rakesh.world86 on Jul 8, 2015
Latest reply on Jul 12, 2015 by vasile.dirla
hi

for(FlowElement fe : data) {
// here i want to get attributes also like sourceref , targetref and default attributes and other attributes also
System.out.println(fe.getDocumentation() + " " + fe.getId() + " " + fe.getName() + " ");
}

//here i want to get attributes also like sourceref , targetref and default attributes and other attributes also
but that properties is unable to show in object help with dot.

pls help me…

<blockcode>
BpmnModel model = repositoryService.getBpmnModel("newxml:2:66");

         List<org.activiti.bpmn.model.Process> processes = model.getProcesses();
         System.out.println("out 1");
         for(Process proc : processes) {
            System.out.println("out 2");

            Collection<FlowElement> data  = proc.getFlowElements() ;

            for(FlowElement fe : data) {
               // here i want to get  attributes also  like sourceref , targetref and default attributes and other attributes also
               System.out.println(fe.getDocumentation() + "        " + fe.getId() + "          " + fe.getName() + "             ");

            }

            System.out.println(data + " ok ");

            //Collection data = proc.getFlowElements();


            //listRequirements(proc);
         }
</blockcode>

Outcomes