This discussion has been locked.
You can no longer post new replies to this discussion. If you have a question you can start a new discussion

DEVELOPERS FORUM - Workflow Activity Status In form!!

yrgowda - Tuesday, May 21, 2013 3:06 AM:

Guys,

Do anyone know how to display the WF status inside the form....??????

Please help me out in this issue.

Thanks

Gowdru



Brian - Thursday, May 23, 2013 1:05 AM:

Hi Gowdru,

This is a slightly ambiguous question so I'm not sure what you are really asking for.

This is the AML to find the "Active" Workflow Activity for a given ECR.

<AML>
<Item type="ECR" action="get">
<item_number>Your ECR Number here</item_number>
<Relationships>
<Item type="Workflow" action="get">
<related_id>
<Item type="Workflow Process" action="get">
<Relationships>
<Item type="Workflow Process Activity">
<related_id>
<Item type="Activity" action="get">
<state>Active</state>
</Item>
</related_id>
</Item>
</Relationships>
</Item>
</related_id>
</Item>
</Relationships>
</Item>
</AML> 

If you use this AML in an onAfterGet server mehod for the ECR you could retrieve the Activity and then display this information on your form.

Or you can just use "Views" from the Menu and select "Workflow" and it will show you the current workflow including indicating which Activity is current.

Hope this helps,

Brian.



yrgowda - Tuesday, May 28, 2013 12:37 AM:

Thanks Brain!

 Let me check whether it works or not... i vl get back to you soon.

Thanks

Gowdru