Example #1
0
        private void ButtonAddTransitionClick(object sender, EventArgs e)
        {
            ProcessBuilder.AddTransition(TransitionName, StateFrom, ValidationPointError, ValidationPointWarning,
                                         ActionPoint, SuccessPoint, null, FailPoint, null, ValidationRuleWarning, ValidationRuleError, DeletingDocumentValidationRuleError, null, CredentialsType, CredentialsPoint);

            ClearValues();
        }
        private dynamic GetTransition()
        {
            var prefillSchema = CreatePrefilledSchema();

            ProcessBuilder.DeleteTransition("DefaultTransition");
            ProcessBuilder.AddTransition("DefaultTransition", null, ValidationPointError, ValidationPointWarning,
                                         ComplexPrefillPoint, SuccessPoint, null, FailPoint, DeletePoint, ValidationRuleWarning, ValidationRuleError, DeletingDocumentValidationRuleError,
                                         prefillSchema != null ? prefillSchema.ToString() : null, CredentialsType, CredentialsPoint);
            return(_process.Transitions[0]);
        }