[jbossseam-issues] [JBoss JIRA] Commented: (JBSEAM-2951) Add ability to start jBPM in the wait-state instead of only the start-state

Alejandro Guizar (JIRA) jira-events at lists.jboss.org
Thu May 8 01:17:20 EDT 2008


    [ http://jira.jboss.com/jira/browse/JBSEAM-2951?page=comments#action_12412089 ] 
            
Alejandro Guizar commented on JBSEAM-2951:
------------------------------------------

The user could signal the newly created process by calling BusinessProcess.transition() once any custom initialization activities have been performed. You can certainly create the process by hand as the user did (see the case), but it feels dirty.

Instead of the new method I proposed earlier, it'd be good that jBPM and Seam had consistent process creation behaviors. It'd be less surprising for our users who are familiar with both products. We can choose to signal on creation or not, but we should do it consistently.

There is one advantage to not signaling. If you do not require initialization, you can always signal immediately:

Seam: businessProcess.createProcess("my proc"); businessProcess.transition("go");
jBPM: jbpmContext.newProcessInstance("my proc").signal("go");

With signal on creation, there is no way to perform any initialization.

> Add ability to start jBPM in the wait-state instead of only the start-state
> ---------------------------------------------------------------------------
>
>                 Key: JBSEAM-2951
>                 URL: http://jira.jboss.com/jira/browse/JBSEAM-2951
>             Project: Seam
>          Issue Type: Feature Request
>          Components: BPM
>            Reporter: Samuel Mendenhall
>            Priority: Minor
>
> "jBPM itself does work as stated in the *jBPM docs*, i.e. start-state behaves as a wait state. It is Seam who signals the process instance right after it is created, effectively disabling the wait behavior of the start-state.
> The intent of giving the start-state a wait behavior is to allow the caller to set variables or complete a user task prior to executing any action in the process.
> Seam should offer a way to create a process instance without signaling it right away. Changing the behavior to leave the signal() out would break existing applications who assume that the process instance immediately moves to the next step. To deal with this, Seam could add a createProcess(ProcessDefinition, boolean) method to the BusinessProcess class. The boolean parameter tells whether the process instance is to be signaled." --Alejandro Guizar

-- 
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: http://jira.jboss.com/jira/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira

        



More information about the seam-issues mailing list