Create New Workitem/Case on a schedule or from an event

Hi,
How can I create a WorkItem/Case based on a schedule (maybe at a certain time everyday) or an event from a queue?

I can only see examples for timers once a case has started but I want one added to the system based on a Schedule or event from a topic queue, then someone comes in and claims it.

Any help would be much appreciated

Thanks.

Hey @chris1,

We do not have a timer start event for cases. However, you could use a process with a timer start event and then with the cmmnRuntimeService with an expression you can create a case.

As from an event, when using the Flowable Channels and Event you can configure that the case should start from a case. e.g. have a look at

Cheers,
Filip

Hi thanks for the reply.

With regards to:

We do not have a timer start event for cases. However, you could use a process with a timer start event and then with the cmmnRuntimeService with an expression you can create a case.

So are you saying I can just create a process in Flowable Design that has a timer start event. And once I publish it, that timer should start?

I tried this but I’m not able to get it to work, I might be doing something wrong.

Im Using Flowable Design with no-code at the moment so i’m not sure about your second suggestion.

We currently have a trial version in the cloud so we have, Flowable Design, Flowable Engage and Flowable Control.

Thanks

In the Cloud you won’t be able to achieve what I explained. However, with an on prem you could do cmmnRuntimeService.createCaseInstanceBuilder().caseDefinitionKey('your-key').start().