ACSCE-5X practice question 13 of 15

During the development stage of a workflow, developers need to make sure the newest version of the process definition is being deployed, as there may be significant structural changes to the workflow. Choose the correct development cycle that allows the deployment of the newest version correctly.

Full set: 87 questions
Answer options
A: Add the property reload “true” to the workflow deployer bean and set this property to false when the development cycle is completed.
B: Add the property redeploy “true” to the workflow deployer bean and set this property to false when the development cycle is completed. Correct answer
C: Add the property reload “true” to the workflow deployer bean and remove this property when the development cycle is completed.
D: Add the property redeploy “true” to the workflow deployer bean and keep this value after the development cycle is completed.
Correct Answer:
B. Add the property redeploy “true” to the workflow deployer bean and set this property to false when the development cycle is completed.
Explanation

The WorkflowDeployer bean in the Alfresco Spring context manages the deployment of process definitions. To ensure the latest version of a workflow is deployed during development, the redeploy property of this bean must be set to true. This forces the Activiti engine to deploy the process definition on server startup, even if a version with the same ID already exists. For production environments, this property should be set to false (the default value) to prevent accidental overwrites of stable, in-use process definitions and to ensure system stability.

Why Incorrect

A. reload is not the correct property for the WorkflowDeployer bean; the correct property is redeploy.
C. reload is not the correct property. The correct property to force deployment of a new version is redeploy.
D. Keeping redeploy="true" after the development cycle is completed is not recommended for production systems as it can lead to instability and unintended process definition overwrites.

References

1. Alfresco Content Services 5.2 Documentation, Deploying a process definition:

Reference: "The redeploy property is set to false by default. This means that if a process has been deployed, it won't be deployed again. This is a good safety feature for a production system. However, during development it is useful to have the process redeployed each time the server is started. To do this set the redeploy property to true."

Location: Alfresco Content Services 5.2 Docs > Developing > Repository-side development > Workflow > Deploying a process definition.

2. Alfresco Process Services 1.x Documentation (Activiti Engine Core Concepts):

Reference: The underlying Activiti engine's deployment mechanism, which Alfresco utilizes, distinguishes between deployments. The redeploy flag in the Alfresco wrapper bean simplifies the development cycle by forcing a new deployment with each restart, which is critical when process definition structures change.

Location: Alfresco Process Services 1.x Docs > Developer guide > Core concepts > Deployment. (This explains the core engine behavior that the redeploy property controls).

Scroll to Top