[jbossseam-issues] [JBoss JIRA] Commented: (JBSEAM-256) Entity-driven processes

Gavin King (JIRA) jira-events at jboss.com
Fri Dec 1 18:44:55 EST 2006


    [ http://jira.jboss.com/jira/browse/JBSEAM-256?page=comments#action_12348067 ] 
            
Gavin King commented on JBSEAM-256:
-----------------------------------

What I'm talking about is the ability for a process instance to have a special "business key", ie a natural unique key in the database.

So you would have:

   String key = currentOrder.getId().toString();
   processDefinition.createProcessInstance(key);

Or perhaps simply:

   String key = currentOrder.getId().toString();
   processInstance.setKey(key);

And then, in another part of the code, you can do:

   String key = currentOrder.getId().toString();
   context.findProcessDefinitionByKey(key);

And the database table has a unique constraint on (processDefnName, key).

Obviously the slightly sucky part about this is that the user needs to be able to stringify the PK of their business objects, but in practice that is very easy to do.



> Entity-driven processes
> -----------------------
>
>                 Key: JBSEAM-256
>                 URL: http://jira.jboss.com/jira/browse/JBSEAM-256
>             Project: JBoss Seam
>          Issue Type: Feature Request
>          Components: BPM
>            Reporter: Gavin King
>         Assigned To: Gavin King
>
> We need new functionality in jBPM to allow us to navigate to a process from an entity related to the process.

-- 
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