Batch autodeploy bar file
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?
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);
That was exactly what i want to do !