Re: Re: Integration with Drools rule engine

"Sasa Bojanic" <[email protected]> Sun, 6 Sep 2009 17:49:45 +0200 (CEST)
Newsgroups gmane.comp.java.enhydra.shark
Message-ID <[email protected]>
This is a multi-part message in MIME format...

------------=_1252311755-18930-3541
Content-Type: text/plain;charset=iso-8859-1
Content-Transfer-Encoding: quoted-printable

Hi,

1. I've already written in previous post that shark can expose its API=20
through the WebServices, and thus it allows you to get all the possible=20
definitions (in fact factories that represent certain definition in the=20
runtime) and to instantiate the process based on the chosen definition

2. If you mean compensation that can be modeled in designed time, yes,  i=
n
XPDL you can do such things. In the runtime, shark has fully
transactional behavior (through JTA and 2phase commit) - either
everything belonging to a transaction succeeds and gets commited to DB,=20
or everything is rolled back. Thanks to JTA, you can have your
application which integrates shark as POJO talking to its own
application DB and Shark talking to its database, and if anything fails=20
on your app DB side or on the shark side, both app and shark DB state=20
will be rolled back.

3. Process instance can be SUSPENDED and then RESUMED (the same applies=20
to activity instances)

4. Don't know what you meant by that? If you mean to wait for some=20
external event to continue, then yes, but this is up to the
implementation of appropriate automatic activity (so called ToolAgent=20
implementation)...


Greetings,
Sasa.

Ajai wrote:
> Hi Sasa,
> Thanks a lot for the response.
> I need some more details regarding Shark to complete our evaluation. 1.
Can a process definition be exposed as a service
> 2. Is there a Process compensation (Process roll back/Exception
handling)
> 3. Can a process instance be stopped and resumed again.
> 4. Can a process be made wait asynchronously.
> Thanks again for the response,
> Regards
> Ajai G
> Sasa Bojanic wrote:
>
>> Hi,
>> I think the integration with Drools shouldn't be a problem. The
question
>> is for which purpose you want to integrate it?
>> If it is for evaluating of transition condition expressions, you can=20
just write your own Scripting interface implementation...
>> About other questions:
>> 1. the definitions are versioned. E.g., when you update XPDL existing
in
>> the system (which can contain of many process definitions), the new=20
definition (its representation in the runtime) gets new version.
Process
>> instances running on old definitions continue running with the old one=
,

>> and newly created processes run on new definitions.
>> 2. Yes, you can communicate with Shark through Shark's WebServices API
3. Yes, inside the process, there can be tool agent (automatic)
activity
>> which can interact with WebServices, get some information, put it back=
=20
into the process and continue with the process
>> 4. Yes
>> 5. Shark is typically embedded into your application (when you use it=20
through its POJO API), and in that case authorization is something you=20
do within your application. However, shark has Security interface (we=20
normally configure shark not to use it, and we have only dummy=20
implementation of this interface), and if you provide the custom=20
implementation of this interface, you can do authorization.
>> 6. This is of course supported (we completely support XPDL1.0). You ca=
n

>> call sub-flow from the main flow either synchronously (where main flow=
=20
initiates sub flow by passing certain information, waits for sub flow
to
>> finish, gets back the results of the sub flow and then continues) or=20
asynchronously (where main flow initiates sub flow and passes
>> information to sub flow, and continues immediately without waiting sub
flow)
>> Regards,
>> Sasa.
>> Ajai wrote:
>>
>>> Hi,
>>> We are in the process of evaluating a Workflow engine that can be
integrated
>>> with Drools rule engine. Can Enhydra shark be integrated with Drools
rule
>>> engine.
>>> Also please tell us the following features are available:
>>> 1. versioning of process definition
>>> 2. Can web service act as a input
>>> 3. Can  Web service be actor in process
>>> 4. Process steps can be assigned to Roles, and User in Roles
>>> 5. Authorization mechanism.
>>> 6. Creating a sub flow from a main flow.
>>> Please let us know the inputs.
>>> Thanks in advance
>>> Regards
>>> Ajai G
>>>
>>>
>> --
>> You receive this message as a subscriber of the [email protected] mailing
list.
>> To unsubscribe: mailto:[email protected]
>> For general help: mailto:[email protected]?subject=3Dhelp
>> OW2 mailing lists service home page: http://www.ow2.org/wws
>>
>







------------=_1252311755-18930-3541
Content-Type: text/plain; charset="UTF-8"; name="message-footer.txt"
Content-Disposition: inline; filename="message-footer.txt"
Content-Transfer-Encoding: quoted-printable


--
You receive this message as a subscriber of the [email protected] mailing lis=
t.
To unsubscribe: mailto:[email protected]
For general help: mailto:[email protected]?subject=3Dhelp
OW2 mailing lists service home page: http://www.ow2.org/wws

------------=_1252311755-18930-3541--