Captaris Workflow - Getting the Overdue Event to Fire

One of the common questions I get from Captaris customers is how to get the overdue event to fire. The reason this question comes up is that some of our method names are downright confusing, and I think we changed something here because it doesn't look the same as I remember it.

In Captaris Workflow, there are a series of events that fire on any given task: Ready, Execute, Overdue, Failed, Reset, and Complete. Ready fires when the task is ready, but nothing has been done. Execute means a task has started but not necessarily finished. Overdue means the time alloted to complete the task has passed, but its not complete yet. Failed means something went wrong. Reset happens when the task is reset by the owner or administrator. And Complete means the task is complete and moves on to the next. At each one of these events, something can happen...anything you want.

There are two ways to set when that overdue event fires. By default, the task becomes overdue 1 year after it becomes ready. Usually you will want to change that. The easiest way is to drag the Set Overdue Date custom action on to the Ready event of the task and set it to the relative date it will be overdue. This will be Now plus some amount of time. There is no coding required to do this. But sometimes you will want a bit more flexibility that what this offers. For that, use the SetReminderForOverdueEvent method. It expects a DateTime, so just give it a time for when the overdue event should fire.

    public void SecondTask_Ready(object data)

    {

        SecondTask.SetReminderForOverdueEvent(DateTime.Now.AddSeconds(30));

    }

Comments

It is not a relevant comment but i just want to know is it possible to create labels in the model using script (when i say script it means the script in the model , as we have gui of the model and we have script view in captaris). In Gui we can drag and drop the labels but i want to creat them on the fly using script.

Let me explain what i am trying to achieve. In the script i get the data (from database) against a parent id so there could be x child entries where x can be zero or any number, so i donot know before hand how many labels i would need to show these entries in the view of that process in workflow. So i just wanted to create the labels in script to show these child entries. I hope i have cleared my point.


The easiest way to achieve what you want is to have a single label, then populate that with the values of all of the data. It will be up to you to format that data, but it sounds like you were willing to spend more time than that anyway...

There is no reason that a single label is limited to a single point of data.


Sorry, comments are closed.