We are creating a certification event which triggers when their is department/manager transfer. Is it possible to set certification active period from rule when launching.
let’s say if we ask admin to select when should the certification should launch in the form ,we had developed a form where admin can select the certifier in the form, we want to add one more field where we can select a date to launch certification and the access review should sent to reviewer on selected date because some times HR may trigger staff transfer before 3 or 4 weeks. Please share some suggestions.
You can try using setActivated(java.util.Date activated) method from Certification object. You can use the start date value from the form to set the activation date for certification.
SetActivated will be in certification class i think so, but we are using certification definition. Once it launched certification object will be available. So their will be any possibility by using certification definition.
If you are triggering using Task Schedule, try using setNextExecution(java.util.Date d) or setNextActualExecution(java.util.Date d) in TaskSchedule class
What I have done is store the identityName in a custom attribute when HR triggers the transfer (IdentityTrigger for a Mover) and have a rule creating a Mover certification.
You can do something similar, have the admin select the certifier and store this with the certifiee and date in a custom attribute.
I had tried this approach. I was trying to set certification for tomorrow.
i got the tomorrow date from form, But the certification was triggering with todays date only. i tried with setNextActualExecution and setNextExecution
I am trying to understand your approach here. Suppose the work item(form) triggered for the HR to select the certifier and date. HR select these values and i will get those and store in custom attribute. Now in the condition i will check the selected date . For example if the certification launch date is next month, then i will skip that step which is responsible for creating the certification in the workflow. Now my confusion is how next month certification will trigger?. Because to trigger the certification, first workitem need to create and after that in one of the step this code is there.
I created a task which runs daily (at the end of all daily tasks) which looks at the custom object to see if a certification has to be started. This updates the custom object again to remove the entry, so it will not start a second certification for the same entry.