Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » BPMN 2.0 Modeler » Change User task property whenever its name changes
Change User task property whenever its name changes [message #1282595] Wed, 02 April 2014 11:04 Go to next message
Rui Domingues is currently offline Rui Domingues
Messages: 186
Registered: October 2010
Senior Member
Hi.

I want that whenever the name of a usertask changes other property is also modified by me.


The way I know to do this is to add an Adapter to UserTask object.

But in the context of BPMN Modeler, where should I, or where is more apropriate to add an adapter to any user task.

Should I change the model code Confused , and on setName() invocation it would change the property?

Thanks in advance
Re: Change User task property whenever its name changes [message #1282600 is a reply to message #1282595] Wed, 02 April 2014 11:08 Go to previous messageGo to next message
Rui Domingues is currently offline Rui Domingues
Messages: 186
Registered: October 2010
Senior Member
... and name changes don't occur only on properties view. It also occurs programatically
Re: Change User task property whenever its name changes [message #1282635 is a reply to message #1282600] Wed, 02 April 2014 11:55 Go to previous message
Robert Brodt is currently offline Robert Brodt
Messages: 577
Registered: August 2010
Location: Colorado Springs, CO
Senior Member

Hi Rui,

Not sure if this helps, but the version 1.1.0 API now has a new interface that will notify your plugin of model object lifecycle events. Please have a look at the IBpmn2RuntimeExtension#notify() method and the javadoc for LifecycleEvent.

If you're stuck with using 1.0.2, you can use the IBpmn2RuntimeExtension#initialize() method to hook in a ResourceSetListener and then listen for change notifications from UserTask objects.

HTH,
Bob
Previous Topic:New version 1.1.0 preview available
Next Topic:Disable "syntax" checking?
Goto Forum:
  


Current Time: Thu Jul 24 00:27:10 EDT 2014

Powered by FUDForum. Page generated in 0.02044 seconds