- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎01-14-2013 10:42 AM
Hello,
I need update a date when I created and updated a doc. For that, we make this automation chain :
/>
Fetch > Context Document
Document > Update Property (value: @{Document["mydocumenttype:expiring_date"].clone()}; xpath: mydocumenttype:recall_expiring_data; save: true)
Scripting > Run Script (Document[ 'mydocumenttype:recall_expiring_data'].add(2,-Document["mydocumenttype:duree_preavis"]);)
Document > Save
It's ok for created a document but if I use this automation chain when document updated, it loop !
So I want create an other automation chain when document updated which :
/>
- test if Document['mydocumenttype:recall_expiring_data'] != Document['mydocumenttype:expiring_data'].add(2,-Document["mydocumenttype:duree_preavis"]
- if different then I update "recall_expiring_data" with Document[ 'mydocumenttype:recall_expiring_data'] = Document['mydocumenttype:expiring_data'].add(2,-Document["mydocumenttype:duree_preavis"]);)
What is the syntax for this test ?
Thanks in advance !
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎01-17-2013 09:36 AM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎01-17-2013 09:36 AM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎01-18-2013 06:44 AM
Hello
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎01-18-2013 07:03 AM
Hello Delphine, you're right, this operation is not provided anymore but as you can see there's a Run Chain operation. Maybe you can use separated chains and call one or the other with the ternary operator ?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎01-18-2013 08:15 AM
Thank you !!!
