Workflow Instance ID question?

View: New views
2 Messages — Rating Filter:   Alert me  

Workflow Instance ID question?

by Suzy Satsuma :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message



Hello, I am using the EngineID concatenated with the
WorkflowInstanceID as a key.  For some reason occasionally when I get
the WorkflowInstanceId a ".0" is appended on the end.  I am curious if
this is an intended effect or a known bug?

Example:
engineID = WorkflowA
workflowinstanceID = 1172854411648
key = WorkflowA1172854411648
But in rare occasions the workflowinstanceId is modified by the engine
to:
1172854411648.0


--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups "OpenWFE users" group.
To post to this group, send email to openwfe-users@...
To unsubscribe from this group, send email to openwfe-users-unsubscribe@...
For more options, visit this group at http://groups.google.com/group/openwfe-users?hl=en
-~----------~----~----~----~------~----~------~--~---


Re: Workflow Instance ID question?

by John Mettraux :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message


2007/3/3, Suzy Satsuma <suzysatsuma@...>:

>
>
> Hello, I am using the EngineID concatenated with the
> WorkflowInstanceID as a key.  For some reason occasionally when I get
> the WorkflowInstanceId a ".0" is appended on the end.  I am curious if
> this is an intended effect or a known bug?
>
> Example:
> engineID = WorkflowA
> workflowinstanceID = 1172854411648
> key = WorkflowA1172854411648
> But in rare occasions the workflowinstanceId is modified by the engine
> to:
> 1172854411648.0

Hi Suzy,

each expression (like 'sequence', 'participant' or 'concurrence') has
a unique flow expression id. The most unique part in it is the
'workflowInstanceId'.

In some cases, parts of a workflow instance are repeated or iterated,
the engine cannot reuse the exact same FlowExpressionId, it has to
differentiate this "subflow", so it appends a ".x" to the workflow
instance id. With this simple technique, you still know wich is the
main flow.

When you have an instance of FlowExpressionId, say 'fei' you can do :

pureWfid = fei.getParentWorkflowInstanceId();

it will return the wfid without any ".x", just the workflow instance
id of the 'parent' workflow.


Best regards,

--
John Mettraux   -///-   http://jmettraux.openwfe.org

--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups "OpenWFE users" group.
To post to this group, send email to openwfe-users@...
To unsubscribe from this group, send email to openwfe-users-unsubscribe@...
For more options, visit this group at http://groups.google.com/group/openwfe-users?hl=en
-~----------~----~----~----~------~----~------~--~---

LightInTheBox - Buy quality products at wholesale price!