You're almost there! Please answer a few more questions for access to the Applications content. Complete registration
Interested in joining? Complete your registration by providing Areas of Interest here. Register

IF clause in Assign Expression

edited Oct 10, 2017 7:00AM in Integration 3 comments

Summary

IF clause in Assign Expression

Content

Hi everybody,

Is it possible to include an IF clause inside the 'Value Expression' of an 'Assign Action'? My problem is that I'm declaring and variable and I initialize ins value with a field from the payload request, but this field is optional, so sometimes it might not come in the request, and when the field is not included in the request I'm getting the following error on that initial assignment:

<bpelFault><faultType>0</faultType><selectionFailure xmlns="http://schemas.xmlsoap.org/ws/2003/03/business-process/"><part name="summary"><summary>The &lt;from> value is invalid. The result of from-spec is null. Either the from node value or the xpath query in the from node value was invalid. According to BPEL4WS spec 1.1 section 14.3, the from node value should not be empty. Verify the from node value at line number 234 in the BPEL source. </summary></part><part name="query"><query>$ics_api_internal_variable.parameters/../nssrcmpr:createUpdateAccount/nssrcmpr:arg0/nssrcmpr:partyId</query></part><part name="lineNumber"><lineNumber>234</lineNumber></part><part name="activity"><activity>30139-BpAss16-BpSeq1.3-21</activity></part></selectionFailure></bpelFault>

Howdy, Stranger!

Log In

To view full details, sign in.

Register

Don't have an account? Click here to get started!