Exemplo n.º 1
0
        public static void Main(string[] args)
        {
            ProcessEngineConfigurationImpl processEngineConfiguration = (ProcessEngineConfigurationImpl)ProcessEngineConfiguration.createProcessEngineConfigurationFromResource("camunda.cfg.xml");
            ProcessEngine processEngine = processEngineConfiguration.buildProcessEngine();

            // register test scenarios
            ScenarioRunner runner = new ScenarioRunner(processEngine, ENGINE_VERSION);

            // cmmn sentries
            runner.setupScenarios(typeof(SentryScenario));

            // compensation
            runner.setupScenarios(typeof(SingleActivityCompensationScenario));
            runner.setupScenarios(typeof(NestedCompensationScenario));
            runner.setupScenarios(typeof(SingleActivityConcurrentCompensationScenario));
            runner.setupScenarios(typeof(ParallelMultiInstanceCompensationScenario));
            runner.setupScenarios(typeof(SequentialMultiInstanceCompensationScenario));
            runner.setupScenarios(typeof(NestedMultiInstanceCompensationScenario));
            runner.setupScenarios(typeof(InterruptingEventSubProcessCompensationScenario));
            runner.setupScenarios(typeof(NonInterruptingEventSubProcessCompensationScenario));
            runner.setupScenarios(typeof(InterruptingEventSubProcessNestedCompensationScenario));

            // job
            runner.setupScenarios(typeof(JobMigrationScenario));

            // boundary events
            runner.setupScenarios(typeof(NonInterruptingBoundaryEventScenario));

            processEngine.close();
        }
Exemplo n.º 2
0
        public static void Main(string[] args)
        {
            ProcessEngineConfigurationImpl processEngineConfiguration = (ProcessEngineConfigurationImpl)ProcessEngineConfiguration.createProcessEngineConfigurationFromResource("camunda.cfg.xml");
            ProcessEngine processEngine = processEngineConfiguration.buildProcessEngine();

            // register test scenarios
            ScenarioRunner runner = new ScenarioRunner(processEngine, ENGINE_VERSION);

            // event subprocesses
            runner.setupScenarios(typeof(InterruptingEventSubprocessScenario));
            runner.setupScenarios(typeof(NonInterruptingEventSubprocessScenario));
            runner.setupScenarios(typeof(NestedNonInterruptingEventSubprocessScenario));
            runner.setupScenarios(typeof(ParallelNestedNonInterruptingEventSubprocessScenario));
            runner.setupScenarios(typeof(NestedParallelNonInterruptingEventSubprocessScenario));
            runner.setupScenarios(typeof(NestedNonInterruptingEventSubprocessNestedSubprocessScenario));
            runner.setupScenarios(typeof(NestedInterruptingErrorEventSubprocessScenario));
            runner.setupScenarios(typeof(TwoLevelNestedNonInterruptingEventSubprocessScenario));
            runner.setupScenarios(typeof(NestedInterruptingEventSubprocessParallelScenario));

            // multi instance
            runner.setupScenarios(typeof(SequentialMultiInstanceSubprocessScenario));
            runner.setupScenarios(typeof(NestedSequentialMultiInstanceSubprocessScenario));
            runner.setupScenarios(typeof(MultiInstanceReceiveTaskScenario));
            runner.setupScenarios(typeof(ParallelMultiInstanceSubprocessScenario));

            // async
            runner.setupScenarios(typeof(AsyncParallelMultiInstanceScenario));
            runner.setupScenarios(typeof(AsyncSequentialMultiInstanceScenario));

            // boundary event
            runner.setupScenarios(typeof(NonInterruptingBoundaryEventScenario));
            runner.setupScenarios(typeof(NestedNonInterruptingBoundaryEventOnInnerSubprocessScenario));
            runner.setupScenarios(typeof(NestedNonInterruptingBoundaryEventOnOuterSubprocessScenario));

            // compensation
            runner.setupScenarios(typeof(SingleActivityCompensationScenario));
            runner.setupScenarios(typeof(SubprocessCompensationScenario));
            runner.setupScenarios(typeof(TransactionCancelCompensationScenario));
            runner.setupScenarios(typeof(InterruptingEventSubprocessCompensationScenario));
            runner.setupScenarios(typeof(SubprocessParallelThrowCompensationScenario));
            runner.setupScenarios(typeof(SubprocessParallelCreateCompensationScenario));

            // plain tasks
            runner.setupScenarios(typeof(OneTaskScenario));
            runner.setupScenarios(typeof(OneScopeTaskScenario));
            runner.setupScenarios(typeof(ParallelTasksScenario));
            runner.setupScenarios(typeof(ParallelScopeTasksScenario));

            // event-based gateway
            runner.setupScenarios(typeof(EventBasedGatewayScenario));

            processEngine.close();
        }
Exemplo n.º 3
0
        public static void Main(string[] args)
        {
            ProcessEngineConfigurationImpl processEngineConfiguration = (ProcessEngineConfigurationImpl)ProcessEngineConfiguration.createProcessEngineConfigurationFromResource("camunda.cfg.xml");
            ProcessEngine processEngine = processEngineConfiguration.buildProcessEngine();

            // register test scenarios
            ScenarioRunner runner = new ScenarioRunner(processEngine, ENGINE_VERSION);

            // compensation
            runner.setupScenarios(typeof(DeployProcessWithoutIsExecutableAttributeScenario));

            processEngine.close();
        }
Exemplo n.º 4
0
        public static void Main(string[] args)
        {
            ProcessEngineConfigurationImpl processEngineConfiguration = (ProcessEngineConfigurationImpl)ProcessEngineConfiguration.createProcessEngineConfigurationFromResource("camunda.cfg.xml");
            ProcessEngine processEngine = processEngineConfiguration.buildProcessEngine();

            // register test scenarios
            ScenarioRunner runner = new ScenarioRunner(processEngine, ENGINE_VERSION);

            // compensation
            runner.setupScenarios(typeof(CreateProcessInstanceWithJsonVariablesScenario));
            runner.setupScenarios(typeof(CreateRootProcessInstanceWithoutRootIdScenario));

            processEngine.close();
        }
Exemplo n.º 5
0
        public static void Main(string[] args)
        {
            ProcessEngineConfigurationImpl processEngineConfiguration = (ProcessEngineConfigurationImpl)ProcessEngineConfiguration.createProcessEngineConfigurationFromResource("camunda.cfg.xml");
            ProcessEngine processEngine = processEngineConfiguration.buildProcessEngine();

            // register test scenarios
            ScenarioRunner runner = new ScenarioRunner(processEngine, ENGINE_VERSION);

            runner.setupScenarios(typeof(DeleteHistoricDecisionsBatchScenario));
            runner.setupScenarios(typeof(DeleteHistoricProcessInstancesBatchScenario));
            runner.setupScenarios(typeof(DeleteProcessInstancesBatchScenario));
            runner.setupScenarios(typeof(SetExternalTaskRetriesBatchScenario));
            runner.setupScenarios(typeof(SetJobRetriesBatchScenario));
            runner.setupScenarios(typeof(UpdateProcessInstanceSuspendStateBatchScenario));
            runner.setupScenarios(typeof(RestartProcessInstanceBatchScenario));
            runner.setupScenarios(typeof(TimerChangeProcessDefinitionScenario));
            runner.setupScenarios(typeof(TimerChangeJobDefinitionScenario));
            runner.setupScenarios(typeof(ModificationBatchScenario));
            runner.setupScenarios(typeof(ProcessInstanceModificationScenario));
            runner.setupScenarios(typeof(MigrationBatchScenario));
            runner.setupScenarios(typeof(TaskFilterScenario));
            runner.setupScenarios(typeof(TaskFilterVariablesScenario));
            runner.setupScenarios(typeof(TaskFilterPropertiesScenario));
            runner.setupScenarios(typeof(DeploymentDeployTimeScenario));
            runner.setupScenarios(typeof(JobTimestampsScenario));
            runner.setupScenarios(typeof(IncidentTimestampScenario));
            runner.setupScenarios(typeof(TaskCreateTimeScenario));
            runner.setupScenarios(typeof(ExternalTaskLockExpTimeScenario));
            runner.setupScenarios(typeof(EventSubscriptionCreateTimeScenario));
            runner.setupScenarios(typeof(MeterLogTimestampScenario));
            runner.setupScenarios(typeof(UserLockExpTimeScenario));
            runner.setupScenarios(typeof(CreateStandaloneTaskScenario));
            runner.setupScenarios(typeof(SetAssigneeProcessInstanceTaskScenario));
            runner.setupScenarios(typeof(CreateStandaloneTaskDeleteScenario));
            runner.setupScenarios(typeof(SuspendProcessDefinitionDeleteScenario));

            processEngine.close();
        }