Clarity: Process Fails - BPM-0704: An error occurred while executing custom script: ../config/properties.xml (no such file or directory)

Document ID : KB000049791
Last Modified Date : 14/02/2018
Show Technical Document Details

Description:

The Same process that runs in our Production Environment under 12.0.4 fails in our Test Environment 12.1.1

The error message on the Initiated Process Messages page shows:

BPM-0704: An error occurred while executing custom script:
org.apache.commons.jelly.JellyTagException: null:4:66: <gel:parse> ../config/properties.xml (no such file or directory)

Figure 1

Solution:

The coding in the GEL script should be modified to retrieve the correct path of the properties configuration file using system environmental parameters.

You can copy the existing process and test this modification.

Go into the GEL Script inside the Process Definition

REPLACE EXISTING LINE:

<gel:parse file="../config/properties.xml" var="properties"/>

WITH THE FOLLOWING LINES:

<core:invokeStatic className="java.lang.System" method="getenv" var="NIKU_HOME">
<core:arg value="NIKU_HOME"/>
</core:invokeStatic>
<gel:parse file="${NIKU_HOME}/config/properties.xml" var="properties"/>

Keywords: CLARITYKB, how-to, configuration, bpm-0704, workflow.