public Void execute(CommandContext commandContext) { checkAuthorization(commandContext); ensureNotNull(BadUserRequestException.class, "decisionDefinitionId", decisionDefinitionId); if (historyTimeToLive != null) { ensureGreaterThanOrEqual(BadUserRequestException.class, "", "historyTimeToLive", historyTimeToLive, 0); } DecisionDefinitionEntity decisionDefinitionEntity = commandContext.getDecisionDefinitionManager().findDecisionDefinitionById(decisionDefinitionId); decisionDefinitionEntity.setHistoryTimeToLive(historyTimeToLive); return null; }
public Void execute(CommandContext commandContext) { checkAuthorization(commandContext); ensureNotNull(BadUserRequestException.class, "decisionDefinitionId", decisionDefinitionId); if (historyTimeToLive != null) { ensureGreaterThanOrEqual(BadUserRequestException.class, "", "historyTimeToLive", historyTimeToLive, 0); } DecisionDefinitionEntity decisionDefinitionEntity = commandContext.getDecisionDefinitionManager().findDecisionDefinitionById(decisionDefinitionId); decisionDefinitionEntity.setHistoryTimeToLive(historyTimeToLive); return null; }
@Override protected DmnDecisionImpl createFromDecision(DmnElementTransformContext context, Decision decision) { DecisionDefinitionEntity decisionDefinition = (DecisionDefinitionEntity) super.createFromDecision(context, decision); String category = context.getModelInstance().getDefinitions().getNamespace(); decisionDefinition.setCategory(category); decisionDefinition.setHistoryTimeToLive(ParseUtil.parseHistoryTimeToLive(decision.getCamundaHistoryTimeToLiveString())); decisionDefinition.setVersionTag(decision.getVersionTag()); return decisionDefinition; }
@Override protected DmnDecisionImpl createFromDecision(DmnElementTransformContext context, Decision decision) { DecisionDefinitionEntity decisionDefinition = (DecisionDefinitionEntity) super.createFromDecision(context, decision); String category = context.getModelInstance().getDefinitions().getNamespace(); decisionDefinition.setCategory(category); decisionDefinition.setHistoryTimeToLive(ParseUtil.parseHistoryTimeToLive(decision.getCamundaHistoryTimeToLiveString())); decisionDefinition.setVersionTag(decision.getVersionTag()); return decisionDefinition; }
public Void execute(CommandContext commandContext) { checkAuthorization(commandContext); ensureNotNull(BadUserRequestException.class, "decisionDefinitionId", decisionDefinitionId); if (historyTimeToLive != null) { ensureGreaterThanOrEqual(BadUserRequestException.class, "", "historyTimeToLive", historyTimeToLive, 0); } DecisionDefinitionEntity decisionDefinitionEntity = commandContext.getDecisionDefinitionManager().findDecisionDefinitionById(decisionDefinitionId); decisionDefinitionEntity.setHistoryTimeToLive(historyTimeToLive); return null; }
@Override protected DmnDecisionImpl createFromDecision(DmnElementTransformContext context, Decision decision) { DecisionDefinitionEntity decisionDefinition = (DecisionDefinitionEntity) super.createFromDecision(context, decision); String category = context.getModelInstance().getDefinitions().getNamespace(); decisionDefinition.setCategory(category); decisionDefinition.setHistoryTimeToLive(ParseUtil.parseHistoryTimeToLive(decision.getCamundaHistoryTimeToLiveString())); decisionDefinition.setVersionTag(decision.getVersionTag()); return decisionDefinition; }