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

 

FAQ - Additional Information

Q) Where can I get information on this from the Guide?

A) Guide: Employee Central Workflows: Implementation and Administration

     Chapter: Triggering Workflows with Business Rules  and  Using the Diagnostic Tool 

     RBP Guide Implementing Business Rules in SAP SuccessFactors

     Chapter: - Is User in Permission Group

See Also

  • 2658091 - Trigger Workflow Compensation Checking if User is Part of a Permission Group
  • 2667822 - How to configure "Is User in Permission Group" in Business Rules
  • 2667822 - How to configure "Is User in Permission Group" in Business Rules

Keywords

Workflow, Attributes, Group, Login User, Criteria,Is User in Permission Group, workflow, Business Rules, Workflow, Attributes, Group, Login User, Criteria, Using Different Workflows for Different User Permission Groups, trigger, Trigger Workflows, wfConfig    , KBA , LOD-SF-EC-WFL-RUT , Workflow Routing, Dynamic Roles & Groups , LOD-SF-EC-WFL , Workflows - Configuration, Tools, Objects & Rules , LOD-SF-EC-RBP , Roles & Permissions (EC Core only) , How To

Product

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