[jBPM] - Possible bug in JBpm JPDL4 editor
by Jaber C. Mourad
Jaber C. Mourad [http://community.jboss.org/people/newbeewan] created the discussion
"Possible bug in JBpm JPDL4 editor"
To view the discussion, visit: http://community.jboss.org/message/547015#547015
--------------------------------------------------------------
Hi,
I'm using eclipse JPDL editor with JBPM4.3 (jBPM 4 Graphical Editor and Tools v4.0.0.v201003041939-795-8s7353393B5L9L) on eclipse 3.5r2.
When I'm trying to put some field into a custom task, this tags are removed by the graphical editor !
For example if I add field :
<custom expr="#{pdfGeneratorFromctivity}" g="134,180,150,52" name="generate pdf">
<field name="pdfTemplate">
<string value="pdftemplatelocation.pdf"/>
</field>
<transition g="-251,-24" name="to mail resume with attachment" to="mail resume with attachment"/>
</custom>
If I move that task with the graphical editor I've got that :
<custom expr="#{pdfGeneratorFromctivity}" g="138,190,150,52" name="generate pdf">
<transition g="-251,-24" name="to mail resume with attachment" to="mail resume with attachment"/>
</custom>
I can reproduce it every time :(
Is there any workaround ?
Regards
--------------------------------------------------------------
Reply to this message by going to Community
[http://community.jboss.org/message/547015#547015]
Start a new discussion in jBPM at Community
[http://community.jboss.org/choose-container!input.jspa?contentType=1&cont...]
15 years, 11 months
Re: [jboss-user] [jBPM Development] - foreach activity
by Alejandro Guizar
Alejandro Guizar [http://community.jboss.org/people/alex.guizar%40jboss.com] replied to the discussion
"foreach activity"
To view the discussion, visit: http://community.jboss.org/message/547005#547005
--------------------------------------------------------------
> Walter Seymore escribió:
> I also thought the expression was a completion condition. Are you saying that the multiplicity attribute can be used in the same way? Let's say a rule execution determines that it should complete, would it be possible to write a multiplicity expression like this (pseudo code) "#{rule.result ? numberCompleted : items.size}"?
The multiplicity expression can be used as a completion condition, but I know what you mean. It has to return an integer instead of a boolean. While the expression can read the process variables, requiring a numeric result makes completion conditions that depend on variables besides the number of joined executions rather cumbersome.
On the other hand, the foreach examples provided so far can be resolved without a boolean completion condition. Plus, the multiplicity attribute was already present since version 4.0 of the jPDL schema. Relying on it for version 4.4 gives us time to discuss if we will need a more generic completion condition.
--------------------------------------------------------------
Reply to this message by going to Community
[http://community.jboss.org/message/547005#547005]
Start a new discussion in jBPM Development at Community
[http://community.jboss.org/choose-container!input.jspa?contentType=1&cont...]
15 years, 11 months
Re: [jboss-user] [jBPM Development] - foreach activity
by Maciej Swiderski
Maciej Swiderski [http://community.jboss.org/people/swiderski.maciej] replied to the discussion
"foreach activity"
To view the discussion, visit: http://community.jboss.org/message/546995#546995
--------------------------------------------------------------
> Walter Seymore wrote:
>
> I also thought the expression was a completion condition. Are you saying that the multiplicity attribute can be used in the same way? Let's say a rule execution determines that it should complete, would it be possible to write a multiplicity expression like this (pseudo code) "#{rule.result ? numberCompleted : items.size}"?
>
> Thanks
> Walter
It is more like surrounding activities that needs to be executed in a loop than attaching loop characteristic to an activity. Meaning that there are two sides with separated responsibilities:
* for each activity that is responsible for creating required activity instances based on outgoing transition and expr attribute
* join activity that is responsible for continuing the flow based on number of incoming transitions and multiplicity attribute
Answering to your question, yes, you can use any expression that is supported by juel. Currently all evaluation on multiplicity attribute is done by JUEL script engine.
--------------------------------------------------------------
Reply to this message by going to Community
[http://community.jboss.org/message/546995#546995]
Start a new discussion in jBPM Development at Community
[http://community.jboss.org/choose-container!input.jspa?contentType=1&cont...]
15 years, 11 months