KogitoProcessContext

294 views
Skip to first unread message

Khushbu Pandya

unread,
Jul 7, 2021, 7:50:28 AM7/7/21
to kogito-de...@googlegroups.com
Hi Team,

I am trying to migrate project from Drools-RHPAM to Kogito based.
In bpmn I have script task which calls Java function.
Eg - CCODValidations.validateCountryTypes(kcontext)
method - validayeCountryTypes(ProcessContext kcontext)
_-------------------------_--------
How can I achieve this in Kogito ?
I understand I need to change to KogitoProcessContext but what is equivalent to "kcontext" ?
I hope I am clear with my query.

Waiting for your reply

Thanks
Khushbu

Ricardo Zanini

unread,
Jul 7, 2021, 8:35:52 AM7/7/21
to Kogito development mailing list
Hi Khushbu!

Many thanks for trying Kogito. I think this example does what are you looking for?

--
Zanini


--
You received this message because you are subscribed to the Google Groups "Kogito development mailing list" group.
To unsubscribe from this group and stop receiving emails from it, send an email to kogito-developm...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/kogito-development/CA%2BfRCQ5tFakXH2y0HsqXfeWmE%3DG0ciGRB3sS%3DpEFuvvBFE3Fjg%40mail.gmail.com.

Khushbu Pandya

unread,
Jul 7, 2021, 8:51:46 AM7/7/21
to kogito-de...@googlegroups.com
Hi Ricardo ,

I saw the example you mentioned, it is calling the method from Script task, but with no argument .
My use case here is to write the content of that variable argument and use that in future purpose. Like how "kcontext" is sent in Drools.

I hope it's clear.
Waiting for your feedback.

Thank you
Khushbu

Ricardo Zanini

unread,
Jul 7, 2021, 2:31:41 PM7/7/21
to Kogito development mailing list
Khushbu, I see there's an ongoing discussion about this topic here: https://kie.zulipchat.com/#narrow/stream/232676-kogito/topic/KogitoProcessContext.20.3F 

Let's keep it in one place, I'll take a look later.

--
Zanini


Reply all
Reply to author
Forward
0 new messages