public ExampleRunnableTaskEntityUi()
            : base()
        {
            UiAttributes.Add("class", "runnableTask");

            TransitionDescriptions.Add("done", "Done");
        }
Ejemplo n.º 2
0
        public PublishDocumentsWorkflowTaskEntityUi()
            : base()
        {
            UiAttributes.Add("class", "publishDocumentsTask");


            TransitionDescriptions.Add("done", TheGlobalisationService.GetString("published"));
        }
        public AnyoneDecisionWorkflowTaskEntityUi()
            : base()
        {
            UiAttributes.Add("class", "userDecisionTask");

            TransitionDescriptions.Add("approve", TheGlobalisationService.GetString("approve"));
            TransitionDescriptions.Add("reject", TheGlobalisationService.GetString("reject"));
        }
Ejemplo n.º 4
0
        public DecisionTaskEntityUi()
            : base()
        {
            UiAttributes.Add("class", "decisionTask");

            TransitionDescriptions.Add("yes", "Yes");
            TransitionDescriptions.Add("no", "No");
        }
Ejemplo n.º 5
0
        public UrlInstantiatorRestartWorkflowTaskEntityUi()
            : base()
        {
            UiAttributes.Add("class", "userDecisionTask");
            UiProperties.Add((IWorkflowUiProperty)CreateGlobalisedObject(typeof(UrlPropertyUi)));

            TransitionDescriptions.Add("restart_workflow", TheGlobalisationService.GetString("restart_workflow"));
        }
Ejemplo n.º 6
0
        public WaitUntilTimeWorkflowTaskEntityUi()
            : base()
        {
            UiAttributes.Add("class", "delayTask");

            TransitionDescriptions.Add("done", TheGlobalisationService.GetString("delay_finished"));

            UiProperties.Add((IWorkflowUiProperty)CreateGlobalisedObject(typeof(HourPropertyUi)));
            UiProperties.Add((IWorkflowUiProperty)CreateGlobalisedObject(typeof(MinutePropertyUi)));
        }
Ejemplo n.º 7
0
        public UserDecisionWorkflowTaskEntityUi()
            : base()
        {
            UiAttributes.Add("class", "userDecisionTask");

            UiProperties.Add((IWorkflowUiProperty)CreateGlobalisedObject(typeof(UserPropertyUi)));

            TransitionDescriptions.Add("approve", TheGlobalisationService.GetString("approve"));
            TransitionDescriptions.Add("reject", TheGlobalisationService.GetString("reject"));
        }
        public FilterDocumentsWorkflowTaskEntityUi()
            : base()
        {
            UiAttributes.Add("class", "filterDocumentsTask");

            UiProperties.Add((IWorkflowUiProperty)CreateGlobalisedObject(typeof(DocumentTypePropertyUi)));

            TransitionDescriptions.Add("contains_docs", TheGlobalisationService.GetString("contains_docs"));
            TransitionDescriptions.Add("does_not_contain_docs", TheGlobalisationService.GetString("does_not_contain_docs"));
        }
        public DelayWorkflowTaskEntityUi()
            : base()
        {
            UiAttributes.Add("class", "delayTask");

            TransitionDescriptions.Add("done", TheGlobalisationService.GetString("delay_finished"));

            UiProperties.Add((IWorkflowUiProperty)CreateGlobalisedObject(typeof(DelayTaskUnitPropertyUi)));
            UiProperties.Add((IWorkflowUiProperty)CreateGlobalisedObject(typeof(DelayTaskIntervalPropertyUi)));
        }
        public InstantiatorEmailWorkflowTaskEntityUi() : base()

        {
            UiAttributes.Add("class", "basicEmailTask");

            UiProperties = new List <IWorkflowUiProperty>
            {
                (IWorkflowUiProperty)CreateGlobalisedObject(typeof(SubjectPropertyUi)),
                (IWorkflowUiProperty)CreateGlobalisedObject(typeof(FromPropertyUi)),
                (IWorkflowUiProperty)CreateGlobalisedObject(typeof(BodyPropertyUi))
            };

            TransitionDescriptions.Add("done", TheGlobalisationService.GetString("email_sent"));
        }
Ejemplo n.º 11
0
        public BitLyUrlShorteningTaskEntityUi()
            : base()
        {
            // Describe the workflow transition
            TransitionDescriptions.Add("done", "URL Was shortened");

            // Decorate your task with a custom CSS class in the designer.
            // The workflow designer scans ~/umbraco/plugins/fmworkflow/css for custom CSS files and includes all of them.
            UiAttributes.Add("class", "bitlyTask");

            // These properties explain how to present a Ui to get values for the public properties of the workflow task.
            UiProperties.Add(new BitLyApiKeyPropertyUi());
            UiProperties.Add(new BitLyLoginPropertyUi());
            UiProperties.Add(new DocumentTypePropertyUi());
        }
Ejemplo n.º 12
0
        protected BaseEmailWorkflowTaskEntityUi()
            : base()
        {
            UiAttributes.Add("class", "basicEmailTask");

            UiProperties.Add((IWorkflowUiProperty)CreateGlobalisedObject(typeof(SubjectPropertyUi)));

            UiProperties.Add((IWorkflowUiProperty)CreateGlobalisedObject(typeof(MailInstantiatorPropertyUi)));
            UiProperties.Add((IWorkflowUiProperty)CreateGlobalisedObject(typeof(MailOwnersPropertyUi)));



            UiProperties.Add((IWorkflowUiProperty)CreateGlobalisedObject(typeof(UserPropertyUi)));
            UiProperties.Add((IWorkflowUiProperty)CreateGlobalisedObject(typeof(UserTypePropertyUi)));
            UiProperties.Add((IWorkflowUiProperty)CreateGlobalisedObject(typeof(FromPropertyUi)));

            TransitionDescriptions.Add("done", TheGlobalisationService.GetString("email_sent"));
        }
        public TweetWorkflowTaskEntityUi()
            : base()
        {
            // Describe the workflow transition
            TransitionDescriptions.Add("done", "Task was tweeted");

            // Decorate your task with a custom CSS class in the designer.
            // The workflow designer scans ~/umbraco/plugins/fmworkflow/css for custom CSS files and includes all of them.
            UiAttributes.Add("class", "tweetTask");

            // These properties explain how to present a Ui to get values for the public properties of the workflow task.
            UiProperties.Add(new AccessTokenPropertyUi());
            UiProperties.Add(new AccessTokenSecretPropertyUi());

            UiProperties.Add(new ConsumerKeyPropertyUi());
            UiProperties.Add(new ConsumerSecretPropertyUi());

            UiProperties.Add(new ShortUrlPropertyUi());
            UiProperties.Add(new TweetTextPropertyUi());
        }
Ejemplo n.º 14
0
        public TweetWorkflowTaskEntityUi()
            : base()
        {
            // Describe the workflow transition
            TransitionDescriptions.Add("done", TheGlobalisationService.GetString("task_was_tweeted"));

            // Decorate your task with a custom CSS class in the designer.
            // The workflow designer scans ~/umbraco/plugins/fmworkflow/css for custom CSS files and includes all of them.
            UiAttributes.Add("class", "tweetTask");

            // These properties explain how to present a Ui to get values for the public properties of the workflow task.
            // You can create globalised objects using:  (IWorkflowUiProperty)CreateGlobalisedObject(typeof(FromPropertyUi))

            UiProperties.Add((IWorkflowUiProperty)CreateGlobalisedObject(typeof(AccessTokenPropertyUi)));
            UiProperties.Add(new AccessTokenSecretPropertyUi());

            UiProperties.Add(new ConsumerKeyPropertyUi());
            UiProperties.Add(new ConsumerSecretPropertyUi());

            UiProperties.Add(new ShortUrlPropertyUi());
            UiProperties.Add(new TweetTextPropertyUi());
        }
 public MyDelayWorkflowTaskEntityUi()
     : base()
 {
     UiAttributes.Add("class", "delayTask");
     TransitionDescriptions.Add("done", "Delay Finished");
 }