This gets the permissions structure to be compliant by having the module name as part of the permission name.
Without this, potential cross-module conflicts exist.
Remove mod-workflow from the context path.
Having mod-workflow 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.
Make sure to start up a local docker or vagrant version of folio, like the FOLIO Nolana vagrant.
For example, the OKAPI login using stripes-cli might look like this:
Perform the appropriate maven packaging of the project.
Spin up a local instance of mod-camunda, such as mvn spring-boot:run, java -jar ..., or an appropriate docker command.
A POST request to {{okapi_url}}/_/proxy/modules in order to register the module.
Make sure to use the build ModuleDescriptor.json as the payload body, generally found under target/.
A POST request to {{okapi_url}}/_/discovery/modules.
Rather than using the DeploymentDescriptor.json generally found under target/, use the following as the payload body.
resolves #219
Changes
Prepend 'workflow.' to each permission.
Remove
mod-workflow
from the context path. Havingmod-workflow
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.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 buildModuleDescriptor.json
as the payload body, generally found undertarget/
.{{okapi_url}}/_/discovery/modules
. Rather than using theDeploymentDescriptor.json
generally found undertarget/
, use the following as the payload body.The
{{mod_camunda_url}}
in particular needs to point to an address of the locally running mod-camunda that the local FOLIO instance can access.{{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-camunda-{{mod_camunda_version}}
.To undeploy the module, a DELETE to
{{okapi_url}}/_/discovery/modules/mod-camunda-{{mod_camunda_version}}
.