Forum Discussion

Geoffrey_Neubauer's avatar
2 years ago

Change Workflow Process state via AML

Hello,

We're cleaning up some InBasket tasks and some seem to be stuck on "Active" when their associated ECNs are released. I've tried manually changing the Workflow Process to be in the "Closed" state with the following AML call to fix the issue but for whatever reason it doesn't seem to be taking.

Has anyone else achieved something similar with success?

<AML>

  <Item type="Workflow Process" action="edit" version="0" where="name='ECN-131963' and is_current='1'">

    <state>Closed</state>

   </Item>

</AML>

1 Reply

  • It´s not only about the Workflow Process. InBasket is about Activities and Assignments. 

    The picture in this posts shows how they stick together: https://aras.com/de-de/blog/aras-best-practices-server-side-code 

    I don´t have a ready to use query for these, but it should be a bottom up approach. So closing the assignments by "fake voting" for somebody should vote up the rest.