Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Automatic process definition deployment #44

Open
nschwalbe opened this issue Apr 11, 2022 · 3 comments
Open

Automatic process definition deployment #44

nschwalbe opened this issue Apr 11, 2022 · 3 comments
Labels
enhancement New feature or request

Comments

@nschwalbe
Copy link

Hello,

thanks for creating this promising SDK project! I'm currently evaluating it and I have a question regarding to deploy a process definition.
Is it possible to automatically deploy a bpmn model placed in /aps-extensions-jar/src/main/resources/apps?
I copied the 4-eyes app from test resources to main resources but it is not automatically deployed. Or do I misunderstand the documentation?
I also found this community question and I'm wondering if I need to implement the "auto deployer" by myself?
https://hub.alfresco.com/t5/alfresco-process-services/how-to-auto-deploy-a-bpmn-model-to-aps/td-p/226253

Best regards,
Nathanael

@OpenPj
Copy link
Owner

OpenPj commented Apr 11, 2022

Hi Nathanael,

you are welcome 😄
Currently the unique way to deploy app available in the SDK is to use the REST API.
The reason for that is because the main goal was to execute unit and integration tests.

Take a look at the first step of the integration test class here:
https://github.com/OpenPj/alfresco-process-services-project-sdk/blob/master/activiti-app-integration-tests/src/test/java/com/activiti/sdk/integrationtests/FourEyesAppIT.java

This part of the code (row 87) will deploy your app in APS:

// Importing the Four Eyes App in APS
IntegrationTestUtils.importApp(appZipFile, ACTIVITI_APP_USERNAME, ACTIVITI_APP_PASSWORD, BASE_PATH_PROTOCOL, BASE_PATH_HOSTNAME, BASE_PATH_PORT);

We could use the Java API code used in the unit test sample for implementing something like a bootstrapper component for this purporse. We'll definitely would like to have something like you are asking for and we also discussed internally at Zia.

I leave this issue open for using it as the main reference for this.

@OpenPj OpenPj added the enhancement New feature or request label Apr 11, 2022
@nschwalbe
Copy link
Author

Hi Piergiorgio,

thanks for your answer! Just for background information for your internal discussion: We like to build an APS docker image with the extension jar and deploy it to different stages from dev to prod without manual process deployment.

Best regards,
Nathanael

@OpenPj
Copy link
Owner

OpenPj commented May 23, 2022

We are trying to create an APS CLI for covering some different purposes related to system administration:
#55

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

2 participants