Skip to main content
November 27, 2023
Question

I want to subtract the value of a process variable from a specific field and process the result by branching.

  • November 27, 2023
  • 1 reply
  • 0 views

I am a beginner with Appian. In the interface, I input values for each field of a record type and save them to process variables. In the process model, I want to reference the same record, subtract a specific field from the corresponding process variable, and perform the following actions:

If the result is 0 or below, I want to send an email without changing the value.
If the result is 1 or above, I want to save the calculated result in a process variable and send an email.
Can you guide me on how to achieve this in Appian?

1 reply

sriramk5349
November 29, 2023

Hi [mention:6859906f77fb48d48d64184cd2e13c70:e9ed411860ed4f2ba0265705b8793d05] ,

Drag an XOR node, in configuration check the subtraction condition. Output will be 2 paths one for <=0 and other is for >=1. create the paths with the respective actions (<=0 email, >=1 update pv in script task and send email). Since its an XOR node, only one path will execute. Please check the conditions as we left the things in between 0 and 1