Re: Workflow status - bug?
Hani Suleiman <[email protected]> Wed, 7 Apr 2004 21:41:02 +0100
| Newsgroups | gmane.comp.java.open-symphony.devel |
|---|---|
| Message-ID | <[email protected]> |
Hm, sounds like a bug. A workflow is determined to be finished if=20
there's absolutely no way it can progress any further. It'd be great if=20=
you can come up with a small example workflow (basically the one below)=20=
that shows the problem and filed a report for it with jira.
Also, your solution of having an empty final step works just fine, yeah.
On Apr 5, 2004, at 3:59 PM, Birgir Kristmannsson wrote:
> 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),=20
> 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=20
> 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_id638&op=3Dclick
> _______________________________________________
> Opensymphony-developers mailing list
> [email protected]
> https://lists.sourceforge.net/lists/listinfo/opensymphony-developers
>
-------------------------------------------------------
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