Skip to content

SAP C4 Conditionals

Conditional Processing or Execution Conditions gives you the power to decide if a particular action on SAP C4 will be performed or not when the workflow is triggered by the incoming event. This is akin to the ability to apply 'if-then-else' logic to the execution of an action based on the value of the attribute from the trigger event of the workflow.

Think of Conditional Processing as an equivalent of 'if-then-else', as decision diamond in the flow chart, or the Conditional Branching in BPEL (Business Process Execution Language).

You can add conditional processing to any action in your workflow and decide which actions should be performed in response to a particular trigger event identified by its characteristics or the data attributes. You can apply complex logic using AND, OR, and grouping of such conditions. Each of the conditions supports different operators based on the event data types like a string, number, boolean, etc. Read here to find more about Conditional Processing.

Example Scenario

We will take a scenario where you are using SAP C4 as the trigger application. There could be multiple application actions attached to be invoked upon receiving a SAP C4 trigger. Each of the actions in the flow would apply its own execution condition based on the data attributes of the SAP C4 trigger event. This will allow each of the actions to independently choose to execute based on the defined execution conditions.

In this example, the workflow is triggered when a new object is created in the SAP C4 instance. It has two actions, the first is the Salesforce action and the second is the ServiceNow (Privileged) action.

In the image below, the action in Salesforce will only take place when the JobTitle from SAP trigger event equals to IT Director.

Conditional Processing in Connect iPaaS

Figure 1. Conditional Processing in Connect iPaaS

Similar to the example above, the image below shows that the ServiceNow action will only take place either if the field Department from the SAP trigger event contains the word Financial OR the field Department from the SAP trigger event contains the word IT.

Conditional Processing in Connect iPaaS

Figure 2. Conditional Processing in Connect iPaaS