Hello all, please bare with me if that topic has already been covered, a
quick search did not yield anything useful. I'm looking at putting together
processes using potentially many sub-processes. In our use case it's
possible that a sub-process  be authored by a 'user' contributing back to
the overall process (for example to allow users to specify custom steps that
need to be taken when certain events occur). One pain point we are hitting
is how to clearly specify what the "inputs" and "outputs" of such
sub-processes should be.

Ideally we would want to be able to specify which workitem fields should be
set and how they should be set prior to invoking a subprocess. It should
also be able to then validate the workitem after the sub-process finishes
for all the specified outputs. A related issue is that it would seem 'safer'
if the subprocess did not have access to the overall workitem but only to
the inputs it has specified. Potentially it would be nice to be able to map
the parent process workitem fields to the subprocess workitem fields since
the field names may defer and map back on the way out.

I understand it's possible to specify variables for a subprocess by using
the expression attributes however in this case I'm really interested in the
workitem. I see that FlowExpression#launch_sub can take a workitem as option
but that doesn't seem to be surfaced to the subprocess expression. If it was
we could build the mapping mechanism described above.

In terms of validation of fields I also could not find anything readily
available. I put a FieldsValidationParticipant
<https://gist.github.com/799298>together, wonder if that's going in the
right direction? so to summarize:

1. How does one validate workitem fields in ruote (e.g. the initial workitem
fields)?
2. How would a sub-process define the fields it expects and how would the
parent process do the mapping?

I could be that I'm completely missing the 'philosophy' being ruote, please
let me know if that's the case...

Thank you!

--
Raphael.

-- 
you received this message because you are subscribed to the "ruote users" group.
to post : send email to [email protected]
to unsubscribe : send email to [email protected]
more options : http://groups.google.com/group/openwferu-users?hl=en

Reply via email to