@Test public void shouldIncrementWorkflowVersion() { workflowState.getNextWorkflowVersion("foo"); final long nextWorkflowVersion = workflowState.getNextWorkflowVersion("foo"); assertThat(nextWorkflowVersion).isEqualTo(2L); }
public int getNextWorkflowVersion(final String bpmnProcessId) { return (int) versionManager.getNextValue(bpmnProcessId); }
WorkflowState { public int getNextWorkflowVersion(final String bpmnProcessId) { return (int) versionManager.getNextValue(bpmnProcessId); } }
WorkflowState { public int getNextWorkflowVersion(final String bpmnProcessId) { return (int) versionManager.getNextValue(bpmnProcessId); } WorkflowState(
      final ZeebeDb<ZbColumnFamilies> zeebeDb,
      final DbContext dbContext,
      final KeyGenerator keyGenerator); }
WorkflowState { public int getNextWorkflowVersion(final String bpmnProcessId) { return (int) versionManager.getNextValue(bpmnProcessId); } WorkflowState(
      final ZeebeDb<ZbColumnFamilies> zeebeDb,
      final DbContext dbContext,
      final KeyGenerator keyGenerator); int getNextWorkflowVersion(final String bpmnProcessId); boolean putDeployment(final long deploymentKey, final DeploymentRecord deploymentRecord); DeployedWorkflow getWorkflowByProcessIdAndVersion(
      final DirectBuffer bpmnProcessId, final int version); DeployedWorkflow getWorkflowByKey(final long workflowKey); DeployedWorkflow getLatestWorkflowVersionByProcessId(final DirectBuffer bpmnProcessId); Collection<DeployedWorkflow> getWorkflows(); Collection<DeployedWorkflow> getWorkflowsByBpmnProcessId(final DirectBuffer processId); void putLatestVersionDigest(final DirectBuffer processId, final DirectBuffer digest); DirectBuffer getLatestVersionDigest(final DirectBuffer processId); TimerInstanceState getTimerState(); ElementInstanceState getElementInstanceState(); EventScopeInstanceState getEventScopeInstanceState(); T getFlowElement(
      final long workflowKey, final DirectBuffer elementId, final Class<T> elementType); }
WorkflowState { public int getNextWorkflowVersion(final String bpmnProcessId) { return (int) versionManager.getNextValue(bpmnProcessId); } WorkflowState(
      final ZeebeDb<ZbColumnFamilies> zeebeDb,
      final DbContext dbContext,
      final KeyGenerator keyGenerator); int getNextWorkflowVersion(final String bpmnProcessId); boolean putDeployment(final long deploymentKey, final DeploymentRecord deploymentRecord); DeployedWorkflow getWorkflowByProcessIdAndVersion(
      final DirectBuffer bpmnProcessId, final int version); DeployedWorkflow getWorkflowByKey(final long workflowKey); DeployedWorkflow getLatestWorkflowVersionByProcessId(final DirectBuffer bpmnProcessId); Collection<DeployedWorkflow> getWorkflows(); Collection<DeployedWorkflow> getWorkflowsByBpmnProcessId(final DirectBuffer processId); void putLatestVersionDigest(final DirectBuffer processId, final DirectBuffer digest); DirectBuffer getLatestVersionDigest(final DirectBuffer processId); TimerInstanceState getTimerState(); ElementInstanceState getElementInstanceState(); EventScopeInstanceState getEventScopeInstanceState(); T getFlowElement(
      final long workflowKey, final DirectBuffer elementId, final Class<T> elementType);  }