Is anyone know a function, plugin to get process instance id of a process without using process report?
Discussion posts and replies are publicly visible
To give an answer, we need more details about what you want to achieve.
we have a requirement like newly added button in existing SAIL Task form should be visible based on the modified/updated process model deployed recently. for this we need to know the process instance start time(or version of the process model that instance) to validate whether that newly added button on the task form should be visible or not.
Thanks in Advance.
Does your SAIL form is embedded as a User input task in the same process model? If yes, then you can pass the process start time from the process model itself.
This could work for newly triggered instances. we need to know this start time for the tasks triggered for the running instances.
Eventually, this start time will be null for older instances right, won't that help?
That could help some how. but we are looking some way to know the instance id or starttime of that instance through some functions without calling the process report.
You can pass in a new parameter to the form, i.e. ri!isNewVersion (or ri!hasFieldXYZ), where the process model is updated to pass a value of true() into the form, so that you can use in-form logic to tell whether you're in a new instance or not.
© 2021 Appian. All rights reserved.