Skip to main content
Level 2
Apr 30, 2021 8:45 AM UTC
Question

How to track workflow from being edit?

Hi Everyone,

I have some work policy to enforce some fields in the workflow properties after someone edit the workflow.

I try to use the XML tag <leave> and put it into xtk:workflow input form to check after someone edit the form but it is not working.

 

I'm not quite sure that I'm doing at the correct location or not.

Please suggest.

Thank you.

 

 

This post is no longer active and is closed to new replies. Need help? Start a new post to ask your question.

9 replies

CedricRey
Level 5
May 4, 2021 10:38 AM UTC

Hello XyNaiz,

Yes, you can use the <leave> element on the xtk:workflow form.

If you wnat to force some fields to be set, use the <set> element :

<leave> <if expr="[/ignored/@type]='a'"> <set value="1" xpath="@myField"/> </if> <if expr="[/ignored/@type]='b'"> <set value="2" xpath="@myField"/> </if> </leave>

You can use this on container, subForm or at the end of the global form.

You can use temporary fields (not saved) with /tmp or /ignored elements.

Cédric

Translate
Level 2
May 5, 2021 7:49 AM UTC

Hi CedricRey,

Thanks for the reply.

I try to put the <leave> at the end of the form but as I said - look like it not working as expect.

Here is my sample code that I have added into the xtk:workflow form. --> Just try to modify the history field in the workflow properties to 31.

Not sure what I did wrong :'(

 

Translate
Sukrity_Wadhwa
Level 4
May 17, 2021 3:54 PM UTC

Hi @naiyapornsm,

Were you able to resolve this query with the given solution or do you still need more help here? Do let us know.

Thanks!

Translate
Sukrity Wadhwa