Process Start Event

1
0
-1

Bonita 7.0.0 Windows 7 64-Bit Java 1.7

Hello,

I have an Account Review Process that I'm building. This process should start when the activationDate == (today's date - 3). The activationDate is set when the New Account Process is completed.

We store this activationDate in a process variable not a business variable. This was because the activation date is closely tied to the process rather than just the model. Its a preference, but I would be please on feedback for this subject too.

Questions:

How should query the process variable data? This would be a job that runs nightly querying the data and once entry is found, an upForReview Flag is set and the Review Process is started.

How should I create the start event? Java, Rest API, etc.

Thank you

2 answers

1
0
-1
This one is the BEST answer!

Question 1: Where should activationDate be. This is BUSINESS DATA. It is not process data. Imagine your bank account, it has an activationDate. Date of Birth is an activationDate...etc. It can only be Business Data.

Question 2: You already answer the question, sort of...you have a process that runs at night reading the business data (database) and starts the processes using REST.

But, what about adding cyclic Account Review?

I would have activationData AND a nextReviewDate in the business data,

for example:

Create New Record
Set activationDate
Set nextReviewDate = activationDate + xDays - leadTime (3 days);
write record to database;

The your batch process would be

read records from database
SQL
recordSet = Select * where todaysDate = nextReviewDate;
for records in RecordSet{
REST to start process;
Set nextReviewDate = nextReviewdate + xDays;
Update Record;
}

By doing this you will then be able to say to customer, we will do a monthly account review, yearly account review etc. based on whatever xdays is...30, 365, 7...

hope this helps,
regards
Seán

Comments

Submitted by mtdonovan on Wed, 08/12/2015 - 16:26

Great explanation. I was trying to add cyclic Account Review, but was trying to perform using a flag instead of date. The date variable is more explicit. One more thing, when it comes to business data vs process data. Any other tips to decipher between the two types. I thought it was process because it was so closely tied to process. As the process was controlling the update of this value.

Thank you

Submitted by mtdonovan on Wed, 08/12/2015 - 16:37

Just looking for anything additional to my post from http://community.bonitasoft.com/questions-and-answers/handling-process-v...

1
0
-1
Notifications