Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Archived » Service Oriented Architecture Tools Platform (STP) » Problem with SequenceEdge display
Problem with SequenceEdge display [message #607602] Wed, 26 December 2007 15:01
Eclipse UserFriend
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
Previous Topic:BPMN parsing problem : feature not found
Next Topic:How do I install B2J?
Goto Forum:
  


Current Time: Thu Sep 26 02:02:02 GMT 2024

Powered by FUDForum. Page generated in 0.04593 seconds
.:: Contact :: Home ::.

Powered by: FUDforum 3.0.2.
Copyright ©2001-2010 FUDforum Bulletin Board Software

Back to the top