[jBPM Users] - Re: How to signal subprocess?
by neshap
anonymous wrote : Thanks for your response, but you have a cast too : Execution into OpenExecution.
|
| Does someone know the diffrence between Execution, ExecutionImpl, OpenExecution, ProcessInstance? I'm a bit confused with all these concepts.
I'm a bit new to JBPM, but I'll try to give it a go.
It seems that casting has to be done (my opinion is better to cast it to interface than implementation). Judging from the javadoc, state of the Execution can be either active or locked. OpenExecution is Execution in active state only, and it gives you access to related objects in execution. ProcessInstance is one execution of a process definition, and it can have many concurrent executions (forks, subprocess).
View the original post : http://www.jboss.org/index.html?module=bb&op=viewtopic&p=4268044#4268044
Reply to the post : http://www.jboss.org/index.html?module=bb&op=posting&mode=reply&p=4268044
15 years, 2 months
[jBPM Users] - How signal as a state to a task?
by cmjhingeniero
Hi
I have a state that has an event that is consumed until the flag reaches a certain value. When you reach this value need to turn to another task. As I do this, some examples in java
| <state g="438,14,92,52" name="verificar repo">
| <on event="start">
| <timer duedate="1 minutes" repeat="10 seconds"/>
| <event-listener class="com.configuracion.eventos.VerificarReposicion">
| <field name="documento"><object expr="#{resReposicion}"/></field>
| <field name="caf"><object expr="#{txtCaf}"/></field>
| </event-listener>
| </on>
| <transition to="enviar email"/>
| </state>
|
| <mail g="562,14,107,54" name="enviar email">
| <to addresses="carlosj(a)audifarma.com.co"/>
| <subject>Prueba</subject>
| <text>Prueba</text>
| <transition to="fin_1"/>
| </mail>
|
As would be the method "notify" in class "com.configuracion.eventos.VerificarReposicion" to pass the signal....
Thanks
View the original post : http://www.jboss.org/index.html?module=bb&op=viewtopic&p=4267973#4267973
Reply to the post : http://www.jboss.org/index.html?module=bb&op=posting&mode=reply&p=4267973
15 years, 2 months