cancel
Showing results for 
Search instead for 
Did you mean: 
Read only

Termination Workflow approval according to the Company country of employee?

adriangalisteo
Participant
0 Kudos
670

Hello mates,

I am trying to create a workflow to approve a Termination, but we have different countries implemented in the system

Is it possible to create a workflow that activates according to the country/region of the company of the terminated employee?

I am creating this one but rule trace log finds the country as Null i do not understand why:

I am used to choose the country of the company in order to determine if a business rules should act according to the company but in this case is a surprise that is finding it as null

Any help on this?

Regards

Accepted Solutions (0)

Answers (1)

Answers (1)

nlgro02343
Active Contributor
0 Kudos

I'm not following, this is for a termination (if so the confusion would make sense)?
For a termination workflow, I'd assume the business rule to be on

employmentInfo --> Onsave & either with Employment Details or Employment Details model as base object. Generally speaking a termination is initiated via that porlet, job info will merely be a consequence afterwards.

adriangalisteo
Participant
0 Kudos

Hi Jasper, thanks for your reply,

and thank you for the point, although I see that through job info the termination workflow is also triggered, (it is happening).

The main point to which I cannot find a solution is to be able to activate different workflows depending on the country to which the worker belongs.

How should the rule be for that to happen?

Best regards

adriangalisteo
Participant
0 Kudos

Found it,

It looks like Job Info Country cannot be found by the rule i do not know why because it made sense, but if you look for Company, Country of registration value, then the rule will find it and works

Hope it helps someone passing by this post!

Regards