Hello Patrice,
I'm sorry, this feature didn't make it into ruote 2.1.x.
I usually do those checks in plain ruby right before calling Engine#launch.
Best regards,
--
John Mettraux - http://jmettraux.wordpress.com
No problem.
[I cannot really do this in plain ruby as my pdefs are defined in XML (which will be generated by a BPMN 2.0 compatible GUI).]
Pat.
> --
> you received this message because you are subscribed to the "ruote users" group.
> to post : send email to openwfe...@googlegroups.com
> to unsubscribe : send email to openwferu-use...@googlegroups.com
> more options : http://groups.google.com/group/openwferu-users?hl=en
How does BPMN2.0 let model those pre-checks ?
Very curious,
Good question.
BPMN is the visual interface. Then you export it to some intermediate format (like XPDL).
When you create a process, you will need to define the input parameters. This is usually done at the application level (Dialog of some sorts). Then this gets mapped to the WorkflowProcess parameters (if you use XPDL as intermediate representation). Then I would need to convert to openwfe xml.
Hello,
you could re-open the ruote engine and wrap launch with your checking logic :
---8<---
module Ruote
class Engine
def check_and_launch (pdef, fields={}, variables={})
pdef, params = split_params(pdef)
check_params(params, fields)
# check_params didn't raise, clear for launch...
launch(pdef, fields, variables)
end
protected
# Splits the params from the process definition.
# Returns an array [ pdef without params, params ].
#
def split_params (pdef)
# ...
end
# Will raise an exception if something is not right...
#
def check_params (params, fields)
# ...
end
end
end
#...
pdef = bpmn2_tool.generate_process_definition()
ruote_engine.check_and_launch(pdef)
--->8---
Just an idea. (fields is the initial payload, what used to be the "launchitem").
Kind regards,
Don French
I mispoke. it is BPMN 1.0 with XPDL 2.1.
BPMN 2.0 is still in beta...
BPVA http://www.visual-paradigm.com (but export is not XPDL)
or Tibco BusinessStudio 2.1
or Bizagi: http://www.bizagi.com/
http://sourceforge.net/projects/bpmn/ looks promising
Pat.
Done!
Thanks,
Pat.