@Override
public void handleRestartInstance(UUID automationCompositionId, AcElementDeploy element,
Map<String, Object> properties, DeployState deployState, LockState lockState) throws PfModelException {
if (DeployState.DEPLOYING.equals(deployState) || DeployState.UNDEPLOYING.equals(deployState)
|| DeployState.DEPLOYED.equals(deployState) || DeployState.UPDATING.equals(deployState)) {
var automationCompositionDefinition = element.getToscaServiceTemplateFragment();
serviceTemplateMap.put(element.getId(), automationCompositionDefinition);
}
if (DeployState.DELETED.equals(deployState)) {
serviceTemplateMap.remove(element.getId());
}
} |