Exemple #1
0
        public override Task Initialize()
        {
            //build a controls crate to render the pane
            var textBlock = UiBuilder.GenerateTextBlock("Monitor Fr8 Events",
                                                        "This Activity doesn't require any configuration.", "well well-lg");

            AddControls(textBlock);

            // var planActivatedCrate = CrateManager.CreateManifestDescriptionCrate("Available Run-Time Objects", "RouteActivated", "13", AvailabilityType.RunTime);
            // var planDeactivatedCrate = CrateManager.CreateManifestDescriptionCrate("Available Run-Time Objects", "RouteDeactivated", "13", AvailabilityType.RunTime);
            //  var containerLaunched = CrateManager.CreateManifestDescriptionCrate("Available Run-Time Objects", "ContainerLaunched", "13", AvailabilityType.RunTime);
            // var containerExecutionComplete = CrateManager.CreateManifestDescriptionCrate("Available Run-Time Objects", "ContainerExecutionComplete", "13", AvailabilityType.RunTime);
            //  var actionExecuted = CrateManager.CreateManifestDescriptionCrate("Available Run-Time Objects", "ActionExecuted", "13", AvailabilityType.RunTime);

            //  Storage.Add(planActivatedCrate);
            // Storage.Add(planDeactivatedCrate);
            //Storage.Add(containerLaunched);
            // Storage.Add(containerExecutionComplete);
            // Storage.Add(actionExecuted);

            EventSubscriptions.Manufacturer = "Fr8Core";
            EventSubscriptions.AddRange("RouteActivated", "RouteDeactivated", "ContainerLaunched", "ContainerExecutionComplete", "ActionExecuted");

            return(Task.FromResult(0));
        }
        public override Task Initialize()
        {
            Storage.Clear();

            /*
             * Discussed with Alexei and it is required to have empty Standard UI Control in the crate.
             * So we create a text block which informs the user that this particular aciton does not require any configuration.
             */
            var textBlock = UiBuilder.GenerateTextBlock("Monitor All DocuSign events", "This Action doesn't require any configuration.", "well well-lg");

            AddControl(textBlock);


            //create a Standard Event Subscription crate
            EventSubscriptions.Manufacturer = "DocuSign";
            EventSubscriptions.AddRange(DocuSignEventNames.GetAllEventNames());

            return(Task.FromResult(0));
        }
        public override Task Initialize()
        {
            var control = UiBuilder.CreateSpecificOrUpstreamValueChooser(
                "EnvelopeId",
                "EnvelopeIdSelector",
                "Upstream Design-Time Fields"
                );

            control.Events = new List <ControlEvent>()
            {
                new ControlEvent("onChange", "requestConfig")
            };

            var infobox = UiBuilder.GenerateTextBlock("This activity will try to get the envelope with the specified Envelope Id. If an envelope id is known at design-time then this activity will signal envelope tabs", "", "");

            Storage.Clear();

            AddControls(infobox, control);

            return(Task.FromResult(0));
        }
Exemple #4
0
 protected void AddLabelControl(string name, string label, string text)
 {
     AddControl(UiBuilder.GenerateTextBlock(label, text, "well well-lg", name));
 }
Exemple #5
0
        public override async Task Initialize()
        {
            var textBlock = UiBuilder.GenerateTextBlock("", "This Action doesn't require any configuration.", "well well-lg");

            AddControl(textBlock);
        }