cancel
Showing results for 
Search instead for 
Did you mean: 

tasklist automatic generated

chris1
Champ in-the-making
Champ in-the-making
Hey community,

I want to generate a tasklist automaticly.

The fist step should be:
the process should start every day at 7.00 o'clock.
In the second step a service task or script task should generate the tasklist from a table and every row in the table is a task.

Is it possible to realize that?

Kind regards
8 REPLIES 8

jan_horneck
Champ in-the-making
Champ in-the-making
Hi chris,

i'm still new to activiti and i dont now if ive got your question correctly, but i hope i can give some answers.
So here goes:

1. There is a TimerStartEvent which lets you start processes repeatedly
(see http://www.activiti.org/userguide/index.html#bpmnTimerStartEvent and
http://en.wikipedia.org/wiki/ISO_8601#Repeating_intervals)

2. This is the point i'm not quite sure i did quite get it.
you could use the taskService (newTask) from a Java Service Task to create tasks programmatically.
But if you want to wait till these tasks are finished, i have no idea.

Best regards,
Jan

chris1
Champ in-the-making
Champ in-the-making
Hey Jan,

sorry, for my late replay.

I try to explain my problem again.

I get messages from an ohter application, every day. These messages i import in an mysql-database.
Now every day the process engine should generate, from every row in the table, a task for a user.

Maybe the attached file help.

Regards
chris

jbarrez
Star Contributor
Star Contributor
Just write some custom Java code, that calls the Activiti taskService and create a standalone task from there.

chris1
Champ in-the-making
Champ in-the-making
Hey,

What kind of start-event i must use and what should be the next?
- the timer based or the condition based event.

Thanks for your Help.

chris1
Champ in-the-making
Champ in-the-making
Good morning,

I can't find a solution, I'm very new in activiti and java!
What i must do?

Maybe can someone give me an small example?

Thanks for your Help!

Regards
Chris

trademak
Star Contributor
Star Contributor
Hi Chris,

If you are new to Java and Activiti this is not an easy project to start with.
But what you could do is just use the Quartz framework to execute a Java class every morning and use the Activiti TaskService class to create tasks for every row you find.
So you won't need a process definition in that case.

Best regards,

chris1
Champ in-the-making
Champ in-the-making
Hey Tijs,

thank you for your help.

The timbased start isn't very important.

It is possible that a user start the process. But its important, that from every row in the table, a task will generate.

May, could you give me some tips or an example how i can solve that problem?

Best Regards,
Chris

chris1
Champ in-the-making
Champ in-the-making
Hey,

i can't find a solution.

How i have to start the process? (The timebase start isn't important)

I used the start event.


<startEvent id="startevent1" name="Start" activiti:formKey="taskForm_newMessage.jsf"></startEvent>
    <exclusiveGateway id="exclusivegateway1" name="Exclusive Gateway"></exclusiveGateway>
    <userTask id="comment" name="Comment" activiti:assignee="user1" activiti:formKey="taskForm_commentMessage.jsf"></userTask>

Where i must implement the TaskService class? In the startevent or im wrong?

For some tips or an small example i would be very appreciate. I have to solve the problem for a project in my study.

Best Regards,
Chris