Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Modeling » MDT (Model Development Tools) » [BPMN2] adding potentialOwner to UserTask
[BPMN2] adding potentialOwner to UserTask [message #665747] Fri, 15 April 2011 17:47 Go to next message
tsurdilo  is currently offline tsurdilo Friend
Messages: 41
Registered: February 2011
Member
Hello, could you please show me how to add a PotentialOwner to the UserTask?

What I have is an insteance of UserTask ut and I do:


PotentialOwner po = Bpmn2Factory.eINSTANCE.createPotentialOwner();
ResourceAssignmentExpression rae = Bpmn2Factory.eINSTANCE.createResourceAssignmentExpression();
FormalExpression fe = Bpmn2Factory.eINSTANCE.createFormalExpression();
fe.setBody(properties.get("actorid"));
rae.setExpression(fe);
po.setResourceAssignmentExpression(rae);

but now what? How can I add PotentialOwner po to UserTask ut?

Any help is appreciated.

Thanks!!!
Re: [BPMN2] adding potentialOwner to UserTask [message #665754 is a reply to message #665747] Fri, 15 April 2011 18:07 Go to previous message
tsurdilo  is currently offline tsurdilo Friend
Messages: 41
Registered: February 2011
Member
Ah, looking at the ecore it seems just do:

ut.getResources().add(po);
Previous Topic:[Xtend / Check] using multiple check files
Next Topic:[BPMN2] extract information by procedure
Goto Forum:
  


Current Time: Fri Apr 26 04:49:06 GMT 2024

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

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

Back to the top