SAP Knowledge Base Article - Public

2536851 - Business Rule: How to Configure business Rule to Trigger Workflow Depending on Login User's Attributes/ Criteria

Symptom

You want to create a separate workflow for different user depending on their position attribute.

This use case is an example request to create two different workflows (or more) for the same task depending on a given Attribute of the Initiator.

"Image/data in this KBA is from SAP internal systems, sample data, or demo systems. Any resemblance to real data is purely coincidental."

Environment

Employee Central - Position Management

Employee Central - Workflows

Reproducing the Issue

The expectation is that the Rule to trigger based on user Attribute

In this example the attribute is Job Classification
For example:
if Job classification = HR Professional (50029122)
Then
Raise workflow that has only 1 level approval (createPosition1L)
else
Raise workflow that has 2 level approval (in lieu we are raising a message to indicate that the user is NOT in JobClassCheck  i.e. not an HR Professional (50029122) )

Resolution

The below is a scenario where by the qualify attribute is Job Classification.

Please Proceed as follows:

 

1- Create your Workflows

 

2- Create a group(s) for your qualifying Attribute

2017-09-18_14-48-12.png

 

3- Create a Business Rules to define the process

rule.png

 

4- Trigger Workflow Request

5- Check Outcome

a- If user is in qualifying group for 1st workflow a workflow is raise accordingly

Worflow.png

 and as you can verify below the initiator is indeed in qualifying group

is in group.png

 

b- If user is NOT in qualifying group a different workflow will trigger or like in this example a message is raised

Message.png

 

Keywords

Workflow, Attributes, Group, Login User, Criteria, , KBA , LOD-SF-EC-WFL-RUT , Workflow Routing, Dynamic Roles & Groups , LOD-SF-EC-WFL , Workflows - Configuration, Tools, Objects & Rules , How To

Product

SAP SuccessFactors Employee Central all versions ; SAP SuccessFactors HCM Core all versions