Esempio n. 1
0
//JAVA TO C# CONVERTER WARNING: Method 'throws' clauses are not available in .NET:
//ORIGINAL LINE: @Override public void execute(org.camunda.bpm.engine.impl.pvm.delegate.ActivityExecution execution) throws Exception
        public virtual void execute(ActivityExecution execution)
        {
            PvmActivity activity        = execution.Activity;
            PvmActivity initialActivity = activity.Properties.get(BpmnProperties.INITIAL_ACTIVITY);

            ensureNotNull("No initial activity found for subprocess " + execution.Activity.Id, "initialActivity", initialActivity);

            execution.executeActivity(initialActivity);
        }
Esempio n. 2
0
        public static ActivityBehavior getActivityBehavior(PvmExecutionImpl execution)
        {
            string id = execution.Id;

            PvmActivity activity = execution.getActivity();

            ensureNotNull(typeof(PvmException), "Execution '" + id + "' has no current activity.", "activity", activity);

            ActivityBehavior behavior = activity.ActivityBehavior;

            ensureNotNull(typeof(PvmException), "There is no behavior specified in " + activity + " for execution '" + id + "'.", "behavior", behavior);

            return(behavior);
        }