Workflow status - bug?
"Birgir Kristmannsson" <[email protected]> Mon, 5 Apr 2004 14:59:13 -0000
| Newsgroups | gmane.comp.java.open-symphony.devel |
|---|---|
| Message-ID | <[email protected]> |
Hi there,
Using OSWorkflow 2.60 - In the following workflow snippet:
<step id=3D"99" name=3D"SemiFinal">
<actions>
<action id=3D"99" name=3D"Workflow completed" auto=3D"true">
<restrict-to>
<conditions type=3D"AND">
<condition type=3D"class">
<arg name=3D"status">Underway</arg>
<arg
name=3D"class.name">com.opensymphony.workflow.util.StatusCondition</arg>
</condition>
</conditions>
</restrict-to>
<pre-functions>
<function type=3D"beanshell">
<arg =
name=3D"script"><![CDATA[System.out.println("*****
Action 99 =3D " + propertySet.getString("data"));]]></arg>
<arg name=3D"language"><![CDATA[beanshell]]></arg>
</function>
</pre-functions>
<results>
<!--unconditional-result old-status=3D"Finished"
status=3D"Finished" step=3D"99"/-->
<unconditional-result old-status=3D"Finished"
status=3D"Finished" step=3D"999"/>
</results>
<post-functions>
<function type=3D"beanshell">
<arg name=3D"script"><![CDATA[
System.out.println("
**************************************");
propertySet.remove("data");
]]></arg>
</function>
</post-functions>
</action>
</actions>
</step>
<step id=3D"999" name=3D"Final" />
A transition is made to step 99 (originally with status Underway), which
has only one action (99) - which is conditional on the status of the
step.
Now, if the snippet is as above, i.e., with an unconditional transition
to step 999 (which is completely empty), then the workflow instance will
get the state 'Completed' - but if it transitions to itself (as many of
the example workflows do), but has no action to run in that case (since
the status has changed to Finished), it will complete with the state
'Activated')
Is this normal? And if so, is what I do above (with step 999) the
appropriate way to 'end' the workflow
bk
-------------------------------------------------------
This SF.Net email is sponsored by: IBM Linux Tutorials
Free Linux tutorial presented by Daniel Robbins, President and CEO of
GenToo technologies. Learn everything from fundamentals to system
administration.http://ads.osdn.com/?ad_id=1470&alloc_id=3638&op=click