Batch autodeploy bar file

1
0
-1

Hello,
I'm working on project that can be deployed each bar in a specific directory. But i need some clues.
When i'm trying to deploy a bar file trough the Engine API, you need to create a 'BarResource'. In that bar resource, you need to add a ProcessDefinition, but, the only way to get that ( that i have found), it's to unzip bar file and parse 'process-design.xml'.

It's possible to get all 'BarRessource' information without unzip all the bar files?

Regards,

1 answer

1
0
-1
This one is the BEST answer!

I'm not 100% sure I understand your question. Are you just trying to deploy bar files through the Engine API?

This is the code I used in my project to programmatically deploy bar files:

BusinessArchive businessArchive = BusinessArchiveFactory.readBusinessArchive(barFile);
ProcessAPI processAPI = TenantAPIAccessor.getProcessAPI(session);
ProcessDefinition processDefinition = processAPI.deploy(businessArchive);

Comments

Submitted by bastien.laurent... on Thu, 02/13/2020 - 08:28

That was exactly what i want to do !
Thank,

Notifications