This discussion has been locked.
You can no longer post new replies to this discussion. If you have a question you can start a new discussion

Re-enable employee

Hello.

Is there a process plan to reactivate an employee if it's exit date is greater than current date? I use the schedule plan "Lock accounts of employees that have left the company" to permanently deactivate employees according to exit date. But I need to reactivate employees who have returned  and their exit date has changed.

Thanks.

Evgen

  • Hi Evgen,

    we don't have such a schedule in the default.

    The only possible condition for such a process plan would be:

    Reactivate all persons which are InActive and the ExitDate is greater than the current date.

    But this is not really reliable.

    Because a person could be InActive due to other reasons.

    So it would be dangerous to activate these persons automatically - only due to the ExitDate in the future.

    If you really want to have it you can define a process and a schedule for it.

    It's not really complicated.

    OTHER possibility:

    You can implement this in the template for "Person.IsInActive"

    This template looks for the ExitDate.

    If the OLD ExitDate was before <now> and the NEW ExitDate is after <now> (or empty) the template sets "IsInactive" to "false".

    In this case you have an automatism which runs only if the ExitDate was changed.

    And you have it immediately, not controled by a schedule.

    Regards,

    Steffen

  • Hello,

    As mentioned in the above post, we are using the condition specified to re-enable a disabled user. However, for some reason when the date is updated, the template is not triggering

    If $CCC_TermDate[C]:Bool$ and $CCC_TermDate[o]:Date$ < Date.Today and ($CCC_TermDate:Date$ > Date.Today) Then

          Value = False

    End if

    Can someone advise what is wrong with the above condition?

  • Hi Steffen,

    is the proposed solution still valid for version 8.0.2? We tried it and it doesn't seem to work. Now I'm wondering, whether it's my template or whether it's because version 8 doesn't allow this anymore.

    Thanks and regards,

    Thomas

  • Hello,

    What did you try?  Version 8 allows modification to the template (Value calculation) for Person.IsInActive, but it depends what you're doing.  Can you provide the code you tried?  And describe what didn't work?

    Trevor