Issue 113: Make changes needed to successfully register deploy module. #123
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
resolves #113
Changes
Prepend 'camunda.' to each permission.
The
provides
dependencies are for individual module parts and not the entire module.Change the behavior to use the individual mod-workflow parts as a dependency.
Remove
mod-camunda
from the context path.Having
mod-camunda
in the context path is preventing proper deployment in OKAPI.Local Deployment Test Process
This assumes proper login and other relating configuration.
This uses
{{}}
syntax to loosely represent variables.Consider using the stripes-cli to perform the appropriate tasks.
For example, the OKAPI login using stripes-cli might look like this:
mvn spring-boot:run
,java -jar ...
, or an appropriate docker command.{{okapi_url}}/_/proxy/modules
in order to register the module.Make sure to use the build
ModuleDescriptor.json
as the payload body, generally found underservice/target/
.{{okapi_url}}/_/discovery/modules
.Rather than using the
DeploymentDescriptor.json
generally found underservice/target/
, use the following as the payload body.The
{{mod_workflow_url}}
in particular needs to point to an address of the locally running mod-workflow that the local FOLIO instance can access.6. A POST request to
{{okapi_url}}/_/proxy/tenants/{{tenant_name}}/modules
, using the following as the body payload:There may be permissions problems, in which case, they could be resolved using the stripes-cli. Example:
To disable the module, a DELETE to
{{okapi_url}}/_/proxy/tenants/{{tenant_name}}/modules/mod-workflow-{{mod_workflow_version}}
.To undeploy the module, a DELETE to
{{okapi_url}}/_/discovery/modules/mod-workflow-{{mod_workflow_version}}
.