I want to send the persistenceId from a process in one diagram to a process in another diagram.
To verify that I'm doing it right, I create a process variable to which I assign 'processInstanceId.toString()' as the initial value, and send it in an end message event.
Upon receiving it in the process of the other diagram, I created a process variable that I gave it the value that I received from the first process, that is, persistence.
What I need is to be able to visualize that data.
Hi,
You can use a slf4j logger in your script to print your variable values in the runtime logs.
// Use whatever logger name suits you, but do not froget to configure it accordingly !
def logger = LoggerFactory.getLogger('org.bonitasoft.engine')
logger.info("myStringVariable=$myStringVariable")
Process variable value can also be displayed in a form or a page using the REST API
HTH
Romain