Back to Browse

CPS WebTips: Automate Evolve - Using Regular Expression for Process Automation

224 views
May 24, 2022
5:36

In this CPS WebTips we will be covering how to use Regular Expression for Process Automation in Automate Evolve. A Regular Expression can be used to extract and set data in the workflow. - Using a Set Column plug-in, we can extract data, such as a Sales Order Number, Purchase Order Number, Material Number, etc., from the log field of a script that has been executed in the workflow. - We can then use what has been extracted to set another field in the form from the workflow. Typically, we’d need form rules to do this on a form view, but that requires a user to receive a task and open the form to allow those rules to run. This method eliminates the need for rules to run on the form to extract a number from the log field of the Precisely / Winshuttle script. Key Steps to successfully extracting data from the log field using RegEx - The log field must be a promoted field. - A “target” field to store the extracted value will be needed and that must also be promoted. - A Set Column plug-in is needed to extract the value from the log field and set the column for the “target” field. - A Value Setter node or a Set Form Data plug-in is needed to update the “target” field with the value from the “target” field’s promoted column. Here’s why: - When a form field is promoted, it creates SharePoint column (in Foundation) or a Solution Data Field (in Automate Evolve) that is now linked with the form field. - The values in the Column/Solution Data field and the form field are not automatically synced, in fact, the value in the form field will replace the value in the column/Solution Data field when the form is submitted on any view, or at any node in the workflow that causes the workflow to pause until that node is complete (Task, Plug-in that does NOT continue without waiting, Wait Plug-in, etc.) - Because of this, if we hit a node in the workflow that causes the form field to update the column/Solution Data field, the value that was set in the Set Column Plug-in will be replaced with the value from the form field which would be blank. - To avoid this, use a Value Setter node or a Set Form Data Plug-in immediately after the Set Column plug-in to also set the form field with the value that was set in the column/Solution Data field. Correct Syntax for RegEx in the Set Column Plug-in - Documentation on Winshuttle’s support site has an error saying to use *. on both sides of the regular expression. - This will cause the plug-in to fail. - The syntax shown on support.winshuttle.com will work if the *. is omitted. CPS has been tactically executing on implementations of digital transformation platforms for years focusing on business process automation, RPA and data & analytics. Our team would like to share this knowledge with you on our YouTube channel via CPS WebTips. If you would like to receive email updates on new, relevant content and videos that have been released, subscribe today! https://www.clearprocesssolutions.com/webtips Clear Process Solutions Making the complex simple.

Download

0 formats

No download links available.

CPS WebTips: Automate Evolve - Using Regular Expression for Process Automation | NatokHD