Hi,
I did change the name of the Master object this process uses, it is now called 'thisSDLC'.
So here is my latest code:
<gel:script xmlns:x="jelly:xml"
xmlns:SOAP-ENV="http://schemas.xmlsoap.org/soap/envelope/"
xmlns:gel="jelly:com.niku.union.gel.GELTagLibrary"
xmlns:soap="jelly:com.niku.union.gel.SOAPTagLibrary"
xmlns:soap-env="http://schemas.xmlsoap.org/soap/envelope/"
xmlns:core="jelly:core"
xmlns:sql="jelly:sql"
xmlns:xog="http://www.niku.com/xog">
<gel:parameter default="xogadmin" var="XOGUsername"/>
<gel:parameter default="Claritydev" secure="true" var="XOGPassword"/>
<soap:invoke endpoint="http://ausgchrwluat2:10202/niku/xog" var="auth">
<soap:message>
<soapenv:Envelope
xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/"
xmlns:xog="http://www.niku.com/xog">
<soapenv:Header/>
<soapenv:Body>
<xog:Login>
<xog:Username>${XOGUsername}</xog:Username>
<xog:Password>${XOGPassword}</xog:Password>
</xog:Login>
</soapenv:Body>
</soapenv:Envelope>
</soap:message>
</soap:invoke>
<gel:out><gel:expr select="$auth"/></gel:out>
<gel:set asString="true" select="$auth/SOAP-ENV:Envelope/SOAP-ENV:Body/xog:SessionID/text()" var="sessionID"/>
<core:choose>
<core:when test="${sessionID == null}">
<gel:out>Couldn't Log in. Check the username/password.</gel:out>
</core:when>
<core:otherwise></core:otherwise>
</core:choose>
<gel:out>SessionID: ${sessionID}</gel:out>
<soap:invoke endpoint="http://ausgchrwluat2:10202/niku/xog" var="runresult">
<soap:message>
<soapenv:Envelope
xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/" xmlns:xog="http://www.niku.com/xog">
<soapenv:Header>
<xog:Auth>
<xog:SessionID>${sessionID}</xog:SessionID>
</xog:Auth>
</soapenv:Header>
<soapenv:Body>
<Process xmlns="http://www.niku.com/xog/InvokeAction">>
<code>fbdm_test_gel</code>
<request>
<thiSDLC
ID="5011660"
NAME="ENV.1"
CODE="SDLC001"
ODF_PARENT_ID="5006495"
DELL_SDLC_DESC="TEST557"/>
</request>
</Process>
</soapenv:Body>
</soapenv:Envelope>
</soap:message>
</soap:invoke>
<gel:out><gel:expr select="$result"/></gel:out>
<gel:out>${result}</gel:out>
</gel:script>
I am running that script using the gel.bat file:
gel test.xml
Since I cannot put images here (apparently the image has to be available in the internet for this to work), I did check the Processes list in Clarity and I can see my process as Running, so the XML is starting the process.
I got the background log files and I found this error several time for my process:
ERROR 2010-06-22 07:04:46,448 [Action Execution Pipeline 0] bpm.engine (process_admin:14983584__74471e5a:none) Error (will retry) caused by Step Instance: com.niku.bpm.engine.objects.StepInstance@17f3d0c [Id: 6140713 Process Instance Id: 6457010 Step Id: 5002787 State: BPM_SIS_READY_TO_EXEC_ACTION Step Name: null Start Date: 2010-06-21 15:27:01.0 Expected End Date: null Percent Complete: 0.5 Warned: false Retry Count: 188 No of Pre Conditions: 1 No of Post Conditions: -1 Last Condition Eval Time: 1277152022143 Pre Condition Wait Events: null Post Condition Wait Events: null Pass Conditions: null Error Id: -1
Process Thread: com.niku.bpm.engine.objects.ProcessThread@80fc51 [Id: 6458010 Parent Step Instance Id: -1 Join Step Instance Id: -1]
Split Threads: null
Join Threads:null]
com.niku.bpm.BpmException: java.lang.NullPointerException
at com.niku.bpm.engine.rules.ActionExecutionPipeline.execute(ActionExecutionPipeline.java:106)
at com.niku.bpm.engine.rules.Pipeline.run(Pipeline.java:221)
Caused by: java.lang.NullPointerException
at com.niku.bpm.services.ProcessEngine.executeStepAction(ProcessEngine.java:111)
at com.niku.bpm.engine.rules.ActionExecutionPipeline.processActions(ActionExecutionPipeline.java:140)
at com.niku.bpm.engine.rules.ActionExecutionPipeline.execute(ActionExecutionPipeline.java:70)
... 1 more
As you can see, there is an error in the process execution.
It might have something to do with the values I am putting in the <request> since I only select a few of them not all of them. I will try putting all the attribute values in there and see if it works.
I would appreciate any insights you might have.
Thanks,
Fabricio