cancel
Showing results for 
Search instead for 
Did you mean: 

Easy questions about activiti...

jcosano
Champ in-the-making
Champ in-the-making
1) is it possible create a new process instance with a specific business key?
I would identify process instance using primary key of my model.

2) I need create new process instance every monday at 10:00 am.
Which is the best way to implement it?

thanks!!
4 REPLIES 4

limcheekin
Champ on-the-rise
Champ on-the-rise
Hi,

You can find the answer for question 1) at http://forums.activiti.org/en/viewtopic.php?f=3&t=244

For question 2), you can use scheduler to instantiate new process instance for time required.

Regards,
Chee Kin

jcosano
Champ in-the-making
Champ in-the-making
Question 1:
I have a specific key before process instance creation. Then this solution is not valid for me. I need create process instance with concrete key.
I can add new column to my table and use this id, but ideally I would avoid this way, if i can use primary key of my table.

Question 2:
Scheduler? is a activiti component?
Now we have a process that every hour awake, (<timerEventDefinition><timeDuration>PT1H</timeDuration></timerEventDefinition>) and start process instance if conditions are true.
I suppose that I can do same more efficiently.

jbarrez
Star Contributor
Star Contributor
1) This is actually being implemented now. You will be able to provide a business key when starting a process instance, and query them later using this key

2) Thats the best workaround for the moment. Once we add timer start events, you won't need that anymore.

jcosano
Champ in-the-making
Champ in-the-making
Thanks I see in jira point 1.

2)
And for now, my number of process is low and with this workaround can wait for timer start!


Thanks!!!!!