Skip to main content

BPM scripts table

Table

The table below lists the scripts that can be used at each step of the workflow

ScriptValidationVisibilitySCIM filter

on

Load

on

Change

on Prepare TransitionOutgoing transitionstra
userType = task.getVariables().get("userType");YesYesNoYesYesYesNo

task.getVariables().put("action", "M");

NoNoNoYesNoNoNo
if (value == null || value.equals(""))
  return ("The userName is mandatory");
else 
  return true;
YesNoNoYesYesNoNo

user = serviceLocator.getUserService().getCurrentUser();

YesYesNoYesYesYesYes
lu = serviceLocator.getUserService().findUserByJsonQuery("userName eq \""+un+"\" ");YesYesNoYesYesYesYes
firstName = (inputFields.get("firstName")!=null) ? inputFields.get("firstName").value : null;YesYesNoNoYesYesNo

inputFields.get("firstName").value = firstName;

YesYesNoNoYesYesNo

a = executionContext.getVariable("firstName");

NoNoNoNoNoNoYes

executionContext.setVariable("firstName", a)

NoNoNoNoNoNoYes
executionContext.getToken().addComment("Automatic comments.......");NoNoNoNoNoNoYes
user = serviceLocator.getUserService().getCurrentUser();
task.getVariables().put("action", "M");
task.getVariables().put("userSelector", user.userName);
workflowWindow.fetchUserAttributes()
NoNoNoYesNoNoNo
firstName co "soffid" AND primaryGroup eq "world"NoNoYesNoNoNoNo

 

Location

Here you can find all kinds of scripts.

image.png

image.png

image.png