Problem with SequenceEdge display [message #607602] |
Wed, 26 December 2007 15:01 |
Eclipse User |
|
|
|
Originally posted by: s.balard.prometil.com
Hi,
I want to generate bpmn_diagram file from an xml file. I based my plugin
on BPEL2BPMN example provided on STP BPMN repository. Everything works
fine until i want to take in account sequenceEdge.
In this case, I have an "Unhandled event loop exception" message caused by
a StackOverFlowException.
public List<View> parseAndGenerateFromFile() {
// creation des polls relatifs aux différents roles definis dans le
// processus
for (Role role : this.epfParser.getDescriptionRoles()) {
this.pools.put(role.getPresentationName(),
this.addPool(role.getPresentationName()));
}
this.pools.put("main", this.addPool(process.getPresentationName()));
HashMap<String, Activity> bpmnReferencesMap = new HashMap<String,
Activity>();
Activity bpmnActivity = null;
// parcours des elements de premier niveau
for (BreakdownElement bde : process.getBreakdownElement()) {
if (bde instanceof org.eclipse.epf.uma._1._0.Activity) {
org.eclipse.epf.uma._1._0.Activity epfActivity =
(org.eclipse.epf.uma._1._0.Activity) bde;
bpmnActivity = this.addActivity(this.pools.get("main"),
bde.getPresentationName(), ActivityType.SUB_PROCESS);
// sauvegarde de la reference a l'activite bpmn creee
bpmnReferencesMap.put(epfActivity.getId(), bpmnActivity);
// parcours des predecesseus
------------------------------------------------------------ -------------------
if (epfActivity.getPredecessor().size() > 0) {
for (WorkOrder workOrder : epfActivity.getPredecessor()) {
this.addSequenceEdge(bpmnReferencesMap
.get(workOrder.getValue()), bpmnActivity, "");
}
}
------------------------------------------------------------ -------------------
}
}
this.generateViews();
List<View> res = new ArrayList<View>();
Map<EObject, View> sem2views = this.getSemantic2notationMap();
// pools renderer
for (Object pool : this.pools.values()) {
res.add(sem2views.get(pool));
}
return res;
}
It's when i remove comments from code between -------- that exception
occurs.
Parameters of addSequenceEdge are not null and have good values.
Does anyone have an idea on my problem ?
Regards,
Sebastien
|
|
|
Powered by
FUDForum. Page generated in 0.03261 seconds