AnsweredAssumed Answered

Gel : persist variable gel_objectInstanceId

Question asked by c.lacoste on Oct 12, 2012
Latest reply on Feb 14, 2018 by Danpego
Hello,

I'm trying to persist the variable gel_objectInstanceId and reuse it in my script (running on the step of a process, which is launched on a project)
<gel:script
                                    xmlns:core="jelly:core"
                                    xmlns:gel="jelly:com.niku.union.gel.GELTagLibrary"
                                    xmlns:soap="jelly:com.niku.union.gel.SOAPTagLibrary"
                                    xmlns:soap-env="http://schema.xmlsoap.org/soap/envelope/"
                                    xmlns:sql="jelly:sql"
                                    xmlns:x="jelly:xml"
                                    xmlns:xog="http://www.niku.com/xog" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
<gel:persist scope="INSTANCE" value="${gel_objectInstanceId}" var="myObjectId"/>

                                    <gel:log level="info">Persist ObjectInstanceId : ${myObjectId}</gel:log>
                                    <gel:log level="info">ObjectInstanceId : ${gel_objectInstanceId}</gel:log>
                                    </gel:script>
Here is the result of the execution :
Persist ObjectInstanceId :
ObjectInstanceId : 5003000
BPM-0546: Custom script has completed.

The persisted variable is not initialized, whereas the value is correctly set.

Thanks for your Help,

Charly

Outcomes