Common kogito library implementation

77 views
Skip to first unread message

Robert Visan

unread,
Jun 28, 2021, 11:48:25 AM6/28/21
to Kogito development mailing list
Hi,

I have been working with kogito for a while and in one of my projects I have been struggling to create a kogito library.
The idea is to create a common kogito library that would contain common workflows and use that project as a dependency for other projects and simply reference a workflow from common as a subprocess instead of having to replicate them in every other project that would need it.
Is there any implementation or configuration in kogito at the moment for the problem described above or any way I could replicate the same results? And if there is none, is this something that could be implemented in the near future?

Best Regards,
Robert Visan

Daniele Zonca

unread,
Jun 28, 2021, 12:12:35 PM6/28/21
to Kogito development mailing list
Hi Robert,

We don't support in Kogito out of the box the possibility to group common resources in a dependency and reuse it.
This is something we definitely plan to do but we don't have a date yet.

The best approach you can follow for now is to use some maven plugin (we use one of them for persistence integration tests):
- create a project with all your common resources like this 
- if the common project is in reachable from the target project you can configure the `maven-resource-plugin` to copy the file like this
- if the source of the jar is not in the same project you can use `maven-dependency-plugin` with the `unpack` goal (pay attention to bind it to copy-resource phase) to copy the file in the target project

I hope this helps
Daniele
 

--
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/d8c96762-a809-4525-b418-5e1c124593cbn%40googlegroups.com.

Robert Visan

unread,
Jun 29, 2021, 6:50:11 AM6/29/21
to Kogito development mailing list
Hi Daniele,

Thank you for your input, I will take this solution into account during the implementation.

Best Regards,
Robert Visan

Reply all
Reply to author
Forward
0 new messages