Timo Hähne | 30 Jun 2010 13:31
Picon
Favicon

General workflow-questions (esp. loop/stop/rollback in workflow)

Hello,

I spend a lot of time in the last days to work with the workflow-component
of ezComponents – and it looks really great.

Unfortunately I have some huge problems with the realisation of a
test-workflow – especially with something like loops or rollbacks in the
workflow. I try to describe my test-workflow:

When a new person is insert into the database the workflow has to be
started. A new person gets the status "new".

The new persons have to be viewed by a system-user. If the person is viewed
in the application, the status of the person has to be changed from "new" to
"viewed". After a person is viewed it has to be assigned to a system-user
who has to accept or cancel the person. If a person is assigned, the status
has to be changed from "viewed" to "assigned". If the person is accept the
new status is also "accept", if it’s cancelled the status is "cancelled".

Durring the process the system/the workflow should modify the status of the
person and/or send different mails and/or reminder – against the status of
the person and the chosen action in the application (which both are
variables in the workflow). For example if a person is viewed but not
assigned, a mail to the system-admin has to be send to remind that there are
some persons who have to be assigned. This mail should be send every time
the workflow (for that person) is called. It’s planned to call the workflow
directly out of the application (for example when a person is viewed) and
also via cron-jobs in a specific interval (like schedule some workflows). 

I created the workflow with php and saved it to XML. I put the XML-code at
(Continue reading)


Gmane