Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Archived » BPMN Modeler » Generating Activity in an existing Pool(Programmatically generating activity creates a duplicate pool)
Generating Activity in an existing Pool [message #653258] Wed, 09 February 2011 04:52
Nidhi  is currently offline Nidhi Friend
Messages: 92
Registered: December 2009
Member

Hi,

I am integrating BPMN model with my domain EMF model.
On creation of a Task in my domain model I need to create a corresponding Activity in the BPMN model and hence BPMN diagram.

While trying to programmatically generate an activity within an existing pool, for BPMN model it works fine:

Activity activity = BpmnFactory.eINSTANCE.createActivity(); activity.setActivityType(ActivityType.TASK_LITERAL);
activity,setName(task.getName);
pool.getVertices().add(activity);

However, when I try to achieve the same in the BPMN diagram, another pool gets created with the same activities on top of the original pool:

BPMNVisual2ProcessGenerator generator = new BPMNVisual2ProcessGenerator(bpmnDiagram));
Activity activity = generator.addActivity(pool, task.getName(), ActivityType.TASK, ... );
generator.generateViews();

Please let me know what am I doing wrong in the process.

Thanks & Regards,
Nidhi
Previous Topic:Source code access for BPMN modeler
Next Topic:Domain specific tabbed properties
Goto Forum:
  


Current Time: Tue Mar 19 11:33:27 GMT 2024

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

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

Back to the top