Journey Manager (JM) The transaction engine for the platform. | System Manager / DevOps | 24.10This feature was updated in 24.10
Manager allows you to create different types of resources to be hosted in a form space.
You can create a resource using one of following options:
To create a resource:
If the Resources tab is not shown, select the Content Editable checkbox in Configure a Form Space.
You must have the Portal Content Edit permission to be able to create new resources.
resources/CSS/learning.css
.The Journey Manager provides the Fluent API to create and update form space resources. The methods are create
, update
and createOrUpdate
and they require either a form space ID or name to be set to create or modify a resource. This is illustrated below:
new SpaceResourceBuilder(txn)
.setSpaceId(733)
.setSpaceName("workspaces")
.setResourcePath("resources/html/test.html")
.setFileData(new byte[] {1,2,5})
.createOrUpdate
The Journey Manager REST API provides the endpoint URL to create and update form space resources.
To call this REST API, you need:
http(s)://{JM_SERVER}/manager/secure/rest/fluentapi/spaceresourcebuilder/create
Content-Type:application/json
- a content type. Accept:application/json
- a data load in JSON format including setSpaceId
, setResourcePath
and setFileData
.
200 OK
status code:fileSize
- a size of a resource.lastModified
- when the resource was updated.modifiedBy
- a user who updated the resource.space
- a form space where the resource belongs to.resourcePath
- a relative path to the resource.curl --location --request POST ‘POST https://{JM_SERVER}/manager/secure/rest/fluentapi/spaceresourcebuilder/create \
Content-Type:application/json \
Accept:application/json \
{ \
"setSpaceId" : "733", \
"setResourcePath" : "resources/html/test.html", \
"setFileData" : "the base64 converted string value of byte data" \
}’
{
"fileSize": "1.00 KB",
"lastModified": "Wed Sep 04 14:49:41 AEST 2024",
"modifiedBy": "administrator",
"space": "Work Spaces",
"resourcePath": "/resources/html/test.html"
}
Next, learn how to configure a form space resource.