Skip navigation
All People > SupratikUBS > Supratik Dutta's Blog > 2018 > November
2018

Supratik Dutta's Blog

November 2018 Previous month Next month

Code to abort running processes using gel script

 

<gel:script xmlns:core="jelly:core" xmlns:gel="jelly:com.niku.union.gel.GELTagLibrary" xmlns:soap="jelly:com.niku.union.gel.SOAPTagLibrary"
xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope" xmlns:sql="jelly:sql" xmlns:util="jelly:util" xmlns:xog="http://www.niku.com/xog"
xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">

<core:catch var="excp">
<gel:parse var="inputDoc">
<data>
<process_instance_id value="5644019"/>
</data>
</gel:parse>

 

<core:new className="com.niku.odf.object.xbl.XBLExecutor" var="xblInstance">
<core:arg value="processInstanceAbort.xbl"/>
<core:arg value="bpm"/>
<core:arg value="${inputDoc}"/>
</core:new>
<core:invoke method="executeXBL" on="${xblInstance}" var="responseDoc"/>
<gel:log>Response Doc : <gel:expr select="$responseDoc"/> </gel:log>
</core:catch>
</gel:script>