Action wont start

Hi all, im trying to run a conditional action to no avail.

I have a metadata filed with the status, I want to place a ‘stamp’ with refused when the metadata equals refused.

I tried the following conditionals :slight_smile:

  1. workflow_instance.document.metadata_value_of.docuwareArchive_Status == ‘Refused’

2){% if workflow_instance.document.metadata_value_of.docuwareArchive_Status == ‘Refused’ %}
TRUE
{% endif %}

and the transformation is :

{“left”:50,“top”:50,“asset_name”:‘RejectedStamp’}

It wont work either with this transformation or with a simpler tag action.

thanks

Hi,

First determine if the problem is the condition or the action.

Remove the condition and verify that the transformation is added.

If you remove the condition and the transformation is not added then check the error log of the state action to see what is the problem. In your case I think it could be the single quote (').

Instead of:

{“left”:50,“top”:50,“asset_name”:‘RejectedStamp’}

try:

{"left":50,"top":50,"asset_name":"RejectedStamp"}

it applies the transformation if i place no contition.

if i go to the sandbox on the document

{% if document.metadata_value_of.docuwareArchive_Status == ‘Refused’ %}
TRUE
{% endif %}

returns TRUE

but

{% if workflow_instance.document.metadata_value_of.docuwareArchive_Status == ‘Refused’ %}
TRUE
{% endif %}

wont place the transformation.

NO ERRORS appear :frowning:

thanks