Lifecycle Event Case - Playbook - Activity Set launched while previous Activity Set is not Complete

psypniew
Mega Guru

Hello community,

 

    I need to understand why an Activity Set (Pre-Boarding) is launched while previous Activity Set (Pre-hire) is not Complete in a Lifecycle Event Case.

Here is the Activity Set configuration:

psypniew_0-1753972719749.png

Here is the Lifecycle Event:

psypniew_1-1753972791893.png

 

Here is the Playbook:

psypniew_2-1753972907189.png

The Lifecycle Event Case is created from a UI Action with a Script. Here is the Script:

// Change the state to Closed Complete (105)
current.state = 105;

// Create a new sn_hr_le_case record
var leCaseGR = new GlideRecord('sn_hr_le_case');
leCaseGR.initialize();
leCaseGR.state = 10;
leCaseGR.subject_person = current.subject_person;
leCaseGR.opened_for = current.subject_person;

// Assign the specific HR Service
leCaseGR.hr_service = '2b72fe801b4c6e5063b2a8e8b04bcb8b';

leCaseGR.insert();

// Update the current case
current.update();

// Notify the user
gs.addInfoMessage('Case clôturé avec succès, un nouveau Lifecycle Event Case Onboarding a été créé et est disponible dans le HR Agent Workspace');

// Redirect to the current record
action.setRedirectURL(current);

 

1 ACCEPTED SOLUTION

Hello community ,

 

I solved the issue by adding a new activity under "Pre-Hire" activity set.

psypniew_0-1754050592647.png

 

Here is the new version of the Activity Set Context on the Lifecycle Event Case:

psypniew_1-1754050706919.png

 

 

The existing active activity was using a custom Fulfiller activity which caused the workflow to not run correctly.

View solution in original post

3 REPLIES 3

abirakundu23
Mega Sage

Hi @psypniew ,
Is there any active activity under "Pre-Hire" activity set ?

Hi  @abirakundu23,

Yes, I have an active Activity under Pre-Hire Activity Set, of type HR Case.

Here is the Activity:

psypniew_0-1754042137758.png

And here are the Lifecycle Event Tasks on the Lifecycle Event Case:

psypniew_1-1754042186103.png

And Activity Set Contexts:

psypniew_2-1754042471723.png

 

 

 

Hello community ,

 

I solved the issue by adding a new activity under "Pre-Hire" activity set.

psypniew_0-1754050592647.png

 

Here is the new version of the Activity Set Context on the Lifecycle Event Case:

psypniew_1-1754050706919.png

 

 

The existing active activity was using a custom Fulfiller activity which caused the workflow to not run correctly.