Ejemplo n.º 1
0
        public static void AddActionsToScheduler(CoreBusinessLayerService service)
        {
            GeolocationActionContext geolocationContext = new GeolocationActionContext();

            string[] availableForGeolocation = WorldMapPointsDAL.GetEntitiesAvailableForGeolocation();
            int      num = 1;

            foreach (string str1 in availableForGeolocation)
            {
                string currentEntity = str1;
                Scheduler.get_Instance().Add(new ScheduledTask(string.Format("GeolocationJob-{0}", (object)num), (TimerCallback)(o =>
                {
                    string str;
                    if (!Settings.IsAutomaticGeolocationEnabled || !WebSettingsDAL.TryGet(string.Format("{0}_GeolocationField", (object)currentEntity), ref str) || string.IsNullOrWhiteSpace(str))
                    {
                        return;
                    }
                    GeolocationJobInitializer.log.Info((object)"Starting action execution");
                    CoreBusinessLayerService businessLayerService = service;
                    ActionDefinition actionDefinition = new ActionDefinition();
                    actionDefinition.set_ActionTypeID("Geolocation");
                    actionDefinition.set_Enabled(true);
                    ActionProperties actionProperties = new ActionProperties();
                    actionProperties.Add("StreetAddress", str);
                    actionProperties.Add("Entity", currentEntity);
                    actionProperties.Add("MapQuestApiKey", WorldMapPointsDAL.GetMapQuestKey());
                    actionDefinition.set_Properties(actionProperties);
                    GeolocationActionContext geolocationActionContext = geolocationContext;
                    businessLayerService.ExecuteAction(actionDefinition, (ActionContextBase)geolocationActionContext);
                }), (object)null, Settings.AutomaticGeolocationCheckInterval));
                ++num;
            }
        }
Ejemplo n.º 2
0
        private async Task <string> GetDocumentTextAsync(ActionProperties properties, Document document)
        {
            Stream stream = await properties.GetDocumentStreamAsync(document);

            Stream documentStream = stream;

            stream = null;
            string result;

            try
            {
                using (StreamReader reader = new StreamReader(documentStream))
                {
                    result = reader.ReadToEnd();
                }
            }
            finally
            {
                if (documentStream != null)
                {
                    ((IDisposable)documentStream).Dispose();
                }
            }
            return(result);
        }
Ejemplo n.º 3
0
        public async override Task <ActionResult> RunAsync(ActionProperties properties)
        {
            ActionResult results = new ActionResult()
            {
                Result = Intelledox.QAWizard.Design.ActionResultType.Success
            };

            try
            {
                foreach (var doc in properties.Documents)
                {
                    string fileName = properties.JobGuid.ToString() + " - " +
                                      doc.DisplayName + doc.Extension;

                    using (var docStream = await properties.GetDocumentStreamAsync(doc))
                        // Write or send the document to a file, external service, etc
                        using (FileStream file = new FileStream(Path.Combine("C:\\temp\\", fileName), FileMode.Create, FileAccess.Write))
                        {
                            await docStream.CopyToAsync(file);
                        }
                }
            }
            catch (Exception ex)
            {
                properties.AddMessage(ex.Message, "Document Action Error");
                results.Result = Intelledox.QAWizard.Design.ActionResultType.Fail;
            }

            return(results);
        }
Ejemplo n.º 4
0
        public override Task <ActionResult> RunAsync(ActionProperties properties)
        {
            // Get a single input value as a boolean and fallback to 'false' if the input hasn't be configured.
            bool basicInputValue = properties.GetInputValue(_basicInput, false);

            // Get a multi-valued input as a list converting the values into integers. An empty list
            // is returned if the input hasn't been configured.
            IList <int> multiInputValue = properties.GetInputValueList <int>(_basicInput);

            // Get a key/value input as a dictionary. An empty dictionary is returned if the input hasn't been configured.
            IDictionary <string, string> keyValueInputValue = properties.GetInputKeyValues <string>(_basicInput);


            // Implement custom action details here. Call services, save documents, etc


            var result = new ActionResult()
            {
                Result = Intelledox.QAWizard.Design.ActionResultType.Success,

                Outputs = new List <Intelledox.Model.ActionOutput> {
                    // Return an output value as part of the results.
                    new Intelledox.Model.ActionOutput()
                    {
                        ID    = _output,
                        Name  = "Custom Output",
                        Value = "myOutputValue"
                    }
                }
            };

            return(Task.FromResult(result));
        }
        public void GetActionProperties(ref ActionProperties actionProperties)
        {
            actionProperties.Description = "Löscht alle EEC Platzhalter";
            ActionParameterProperties recordName = new ActionParameterProperties();

            recordName.Set("recordname");
            actionProperties.AddParameter(recordName);
        }
Ejemplo n.º 6
0
 public IObjectViewModel Clone()
 {
     return(new CheckBoxViewModel
     {
         Properties = Properties.Clone(),
         TextProperties = TextProperties.Clone(),
         ActionProperties = ActionProperties.Clone(),
     });
 }
Ejemplo n.º 7
0
 public IObjectViewModel Clone()
 {
     return(new RadioViewModel
     {
         Properties = Properties.Clone(),
         GroupName = GroupName,
         TextProperties = TextProperties.Clone(),
         ActionProperties = ActionProperties.Clone()
     });
 }
Ejemplo n.º 8
0
 public IObjectViewModel Clone()
 {
     return(new DatePickerViewModel
     {
         Properties = Properties.Clone(),
         TextProperties = TextProperties.Clone(),
         IsRequired = IsRequired,
         ActionProperties = ActionProperties.Clone()
     });
 }
Ejemplo n.º 9
0
 public IObjectViewModel Clone()
 {
     return(new TextBoxViewModel
     {
         Properties = Properties.Clone(),
         Text = Text,
         IsMultiline = IsMultiline,
         IsRequired = IsRequired,
         ActionProperties = ActionProperties.Clone()
     });
 }
Ejemplo n.º 10
0
    private bool IsThisSwipeRight()
    {
        ActionProperties actionProperties = Monster.Instance.ReturnCurrentActionProperties();

        if (actionProperties == null)
        {
            return(false);
        }

        return(actionProperties.ActionType == ActionType.Swipe && actionProperties.HotSpotLocation == _hotSpotHelper.HotSpotLocation);
    }
Ejemplo n.º 11
0
        /// <summary>
        /// Documentation function for the Action; is called of the system as required
        /// Bescheibungstext delivers for the Action itself and if the Action String-parameters ("Kommandozeile")
        /// also name and description of the single parameters evaluates
        /// </summary>
        /// <param name="actionProperties"> This object must be filled with the information of the Action.</param>
        public void GetActionProperties(ref ActionProperties actionProperties)
        {
            // Description 1st parameter
            // ActionParameterProperties firstParam= new ActionParameterProperties();
            // firstParam.set("Param1", "1. Parameter for ActionNextSymbolVariant");
            // actionProperties.addParameter(firstParam);

            // Description 2nd parameter
            // ActionParameterProperties firstParam= new ActionParameterProperties();
            // firstParam.set("Param2", "2. Parameter for ActionNextSymbolVariant");
            // actionProperties.addParameter(firstParam);
        }
Ejemplo n.º 12
0
        public void Update(IObjectViewModel buffer)
        {
            if (!(buffer is CheckBoxViewModel))
            {
                return;
            }
            var viewModel = (CheckBoxViewModel)buffer;

            Properties.Update(viewModel.Properties);
            TextProperties.Update(viewModel.TextProperties);
            ActionProperties.Update(viewModel.ActionProperties);
        }
        /// <summary>
        /// Documentation function for the Action; is called of the system as required 
        /// Bescheibungstext delivers for the Action itself and if the Action String-parameters ("Kommandozeile")
        /// also name and description of the single parameters evaluates
        /// </summary>
        /// <param name="actionProperties"> This object must be filled with the information of the Action.</param>
        public void GetActionProperties(ref ActionProperties actionProperties)
        {
            // Description 1st parameter
            // ActionParameterProperties firstParam= new ActionParameterProperties();
            // firstParam.set("Param1", "1. Parameter for MLTReorderAction");
            // actionProperties.addParameter(firstParam);

            // Description 2nd parameter
            // ActionParameterProperties firstParam= new ActionParameterProperties();
            // firstParam.set("Param2", "2. Parameter for MLTReorderAction");
            // actionProperties.addParameter(firstParam);
        }
Ejemplo n.º 14
0
        /// <summary>
        /// Documentation function for the Action; is called of the system as required
        /// Bescheibungstext delivers for the Action itself and if the Action String-parameters ("Kommandozeile")
        /// also name and description of the single parameters evaluates
        /// </summary>
        /// <param name="actionProperties"> This object must be filled with the information of the Action.</param>
        public void GetActionProperties(ref ActionProperties actionProperties)
        {
            // Description 1st parameter
            // ActionParameterProperties firstParam= new ActionParameterProperties();
            // firstParam.set("Param1", "1. Parameter for ActionApiExtWithParameters");
            // actionProperties.addParameter(firstParam);

            // Description 2nd parameter
            // ActionParameterProperties firstParam= new ActionParameterProperties();
            // firstParam.set("Param2", "2. Parameter for ActionApiExtWithParameters");
            // actionProperties.addParameter(firstParam);
        }
Ejemplo n.º 15
0
        public void Update(IObjectViewModel buffer)
        {
            if (!(buffer is RadioViewModel))
            {
                return;
            }
            var viewModel = (RadioViewModel)buffer;

            Properties.Update(viewModel.Properties);
            GroupName = viewModel.GroupName;
            TextProperties.Update(viewModel.TextProperties);
            ActionProperties.Update(viewModel.ActionProperties);
        }
Ejemplo n.º 16
0
        // Main entry point into the action where it will perform its custom operations.
        // This will be called after the form has been submitted or after each document
        // generation for a repeating template.
        public override Task <ActionResult> RunAsync(ActionProperties properties)
        {
            ActionResult results = new ActionResult()
            {
                Result = Intelledox.QAWizard.Design.ActionResultType.Success
            };


            // Implement custom action details here. Call services, save documents, etc


            return(Task.FromResult(results));
        }
Ejemplo n.º 17
0
        public void Update(IObjectViewModel buffer)
        {
            if (!(buffer is DatePickerViewModel))
            {
                return;
            }
            var viewModel = (DatePickerViewModel)buffer;

            Properties.Update(viewModel.Properties);
            TextProperties.Update(viewModel.TextProperties);
            ActionProperties.Update(viewModel.ActionProperties);
            IsRequired = viewModel.IsRequired;
        }
Ejemplo n.º 18
0
        /// <summary>
        /// Documentation function for the Action; is called of the system as required
        /// Bescheibungstext delivers for the Action itself and if the Action String-parameters ("Kommandozeile")
        /// also name and description of the single parameters evaluates
        /// </summary>
        /// <param name="actionProperties"> This object must be filled with the information of the Action.</param>
        public void GetActionProperties(ref ActionProperties actionProperties)
        {
            // Description 1st parameter
            ActionParameterProperties firstParam = new ActionParameterProperties();

            firstParam.Set("1. Parameter for FirstAction");
            actionProperties.AddParameter(firstParam);

            // Description 2nd parameter
            ActionParameterProperties secondParam = new ActionParameterProperties();

            secondParam.Set("2. Parameter for FirstAction");
            actionProperties.AddParameter(secondParam);
        }
Ejemplo n.º 19
0
        public void Update(IObjectViewModel buffer)
        {
            if (!(buffer is TextBoxViewModel))
            {
                return;
            }
            var viewModel = (TextBoxViewModel)buffer;

            Properties.Update(viewModel.Properties);
            Text        = viewModel.Text;
            IsMultiline = viewModel.IsMultiline;
            IsRequired  = viewModel.IsRequired;
            ActionProperties.Update(viewModel.ActionProperties);
        }
        // Token: 0x06000431 RID: 1073 RVA: 0x0001C648 File Offset: 0x0001A848
        public static void AddActionsToScheduler(CoreBusinessLayerService service)
        {
            GeolocationActionContext geolocationContext = new GeolocationActionContext();

            string[] entitiesAvailableForGeolocation = WorldMapPointsDAL.GetEntitiesAvailableForGeolocation();
            int      num = 1;

            string[] array = entitiesAvailableForGeolocation;
            for (int i = 0; i < array.Length; i++)
            {
                string        currentEntity2 = array[i];
                string        currentEntity  = currentEntity2;
                ScheduledTask scheduledTask  = new ScheduledTask(string.Format("GeolocationJob-{0}", num), delegate(object o)
                {
                    if (!Settings.IsAutomaticGeolocationEnabled)
                    {
                        return;
                    }
                    string text;
                    if (!WebSettingsDAL.TryGet(string.Format("{0}_GeolocationField", currentEntity), ref text))
                    {
                        return;
                    }
                    if (string.IsNullOrWhiteSpace(text))
                    {
                        return;
                    }
                    GeolocationJobInitializer.log.Info("Starting action execution");
                    CoreBusinessLayerService service2 = service;
                    ActionDefinition actionDefinition = new ActionDefinition();
                    actionDefinition.ActionTypeID     = "Geolocation";
                    actionDefinition.Enabled          = true;
                    ActionProperties actionProperties = new ActionProperties();
                    actionProperties.Add("StreetAddress", text);
                    actionProperties.Add("Entity", currentEntity);
                    actionProperties.Add("MapQuestApiKey", WorldMapPointsDAL.GetMapQuestKey());
                    actionDefinition.Properties = actionProperties;
                    service2.ExecuteAction(actionDefinition, geolocationContext);
                }, null, Settings.AutomaticGeolocationCheckInterval);
                Scheduler.Instance.Add(scheduledTask);
                num++;
            }
        }
Ejemplo n.º 21
0
    public void UpdateActiveHotSpot()
    {
        ActionProperties actionProperties = ReturnCurrentActionProperties();
        HotSpot          newHotSpot       = (actionProperties == null) ? null : ReturnMatchingHotSpot(ReturnCurrentActionProperties().HotSpotLocation);

        if (_currentlyActiveHotSpot == newHotSpot)
        {
            return;
        }

        if (_currentlyActiveHotSpot != null)
        {
            HideHotSpotIndication(_currentlyActiveHotSpot);
        }

        // Set new hot spot.
        _currentlyActiveHotSpot = newHotSpot;
        IndicateHotSpot(_currentlyActiveHotSpot);
        AnimationHelper.UpdateDefaultAnimation(actionProperties.AnimationTypeToIndicate);
    }
Ejemplo n.º 22
0
    public void Action(int segment)
    {
        // Debug.Log(segment);
        ConfirmationUI.Instance.TurnAction();
        if (segment == 0)
        {
            SelectMovement();
        }
        else
        {
            ActionProperties action = GetAction(segment - 1);
            var weapon = action as WeaponProperties;
            if (weapon != null)
            {
                activeWeapon = weapon;
                SelectedWeapon();
            }
            else
            {
                AbilityProperties ability = action as AbilityProperties;
                switch (ability.Target)
                {
                case AbilityProperties.TargetType.Self: break;

                case AbilityProperties.TargetType.SelfAOE: break;

                case AbilityProperties.TargetType.Ally: break;

                case AbilityProperties.TargetType.AllyAOE: break;

                case AbilityProperties.TargetType.Enemy: break;

                case AbilityProperties.TargetType.EnemyAOE: break;

                case AbilityProperties.TargetType.All: break;
                }
            }
        }
    }
Ejemplo n.º 23
0
    internal void InstantiateActions(List <ActionItem> actions)
    {
        // HACK
        if (ParentPanel == null)
        {
            ParentPanel = GameObject.FindWithTag("Panel").GetComponent <RectTransform>();
        }
        ClearActionItems();

        foreach (ActionItem action in actions)
        {
            GameObject actionItemButton = (GameObject)Instantiate(actionItemPrefab);
            actionItemButton.transform.SetParent(ParentPanel, false);
            actionItemButton.transform.localScale = new Vector3(1, 1, 1);
            Button           tempButton       = actionItemButton.GetComponent <Button>();
            ActionProperties actionProperties = actionItemButton.GetComponent <ActionProperties>();

            actionProperties.actionId   = action.id;
            actionProperties.actionCost = action.cost;
            actionItemButton.GetComponentInChildren <Text>().text = action.label + " ($ " + actionProperties.actionCost + ")";
            tempButton.onClick.AddListener(() => TriggerAction(action.triggerAction));
        }
    }
Ejemplo n.º 24
0
    /// <summary>
    /// Registers an action taken on the monster.
    /// </summary>
    /// <param name="actionType">Type of input used.</param>
    /// <param name="hotSpot">Hot spot where the input was used on.</param>
    public void RegisterAction(ActionType actionType, HotSpotLocation hotSpot)
    {
        Debug.Log(string.Format("Registering input of {0} at {1}.", actionType, hotSpot), this);

        ActionProperties actionProperties = ReturnCurrentActionProperties();

        if (actionProperties == null)
        {
            return;
        }

        //Debug.Log(actionProperties.ActionType + "==" + actionType + " && " + actionProperties.HotSpotLocation + "==" + hotSpot + " && " + actionProperties.holdableType + "==" + _holdObject.currentObject.holdableType);

        if (actionProperties.ActionType == actionType && actionProperties.HotSpotLocation == hotSpot && actionProperties.holdableType == _holdObject.currentObject.holdableType)
        {
            if (actionProperties.ActionType == ActionType.DragAndDrop)
            {
                _holdObject.DropObject();
            }

            // Succes!
            PlayAudio(actionProperties.AudioToPlayOnSucces);

            AnimationHelper.UpdateAnimation(actionProperties.AnimationTypeOnSucces, 3f);

            Iterate();
        }
        else if (actionProperties.HotSpotLocation == hotSpot)
        {
            return;
        }
        else
        {
            AnimationHelper.UpdateAnimation(AnimationType.Angry, 3f);
            Escalate();
        }
    }
 /// <summary>
 /// Documentation function for the action.
 /// </summary>
 /// <param name="actionProperties"> This object needs to be filled with
 /// information about the action.</param>
 public void GetActionProperties(ref ActionProperties actionProperties)
 {
 }
Ejemplo n.º 26
0
        public override async Task <ActionResult> RunAsync(ActionProperties properties)
        {
            ActionResult actionResult = new ActionResult
            {
                Result = 0
            };

            try
            {
                SpringCMConnectorSettings settings = new SpringCMConnectorSettings(properties.Context.BusinessUnitGuid);
                bool   debug        = settings.DebugMode;
                string clientId     = string.Empty;
                string clientSecret = string.Empty;
                string authURL      = string.Empty;
                string requestURL   = string.Empty;
                string workflowName = string.Empty;
                string environment  = string.Empty;
                string xmlPayload   = string.Empty;

                var workflowDocs = new Dictionary <string, List <string> >
                {
                    { "Items", new List <string>() }
                };

                foreach (RoutingOption routingOption in properties.ActionInputs)
                {
                    ActionInput input = (ActionInput)routingOption;
                    if (input.ElementTypeId == this._workflowName)
                    {
                        workflowName = input.OutputValue;
                        if (string.IsNullOrEmpty(workflowName))
                        {
                            throw new ApplicationException("A SpringCM workflow name must be specified.  Please check your action attributes in Designer.");
                        }
                    }
                    else if (input.ElementTypeId == this._environment)
                    {
                        environment = input.OutputValue;
                        if (string.IsNullOrEmpty(environment))
                        {
                            throw new ApplicationException("A SpringCM environment must be specified.  Please check your action attributes in Designer.");
                        }
                    }
                    input = null;
                }

                if (environment == "prod")
                {
                    clientId     = settings.ClientId;
                    clientSecret = settings.ClientSecret;
                    authURL      = settings.AuthURL;
                    requestURL   = settings.RequestURL;
                }
                else
                {
                    clientId     = settings.UatClientId;
                    clientSecret = settings.UatClientSecret;
                    authURL      = settings.UatAuthURL;
                    requestURL   = settings.UatRequestURL;
                }

                bool flag = string.IsNullOrEmpty(clientId);
                if (flag)
                {
                    throw new Exception("Infiniti user name must be provided.  Please fix the connector settings in Manage.  Manage -> Settings -> Connector Settings -> SpringCM Connector");
                }
                bool flag2 = string.IsNullOrEmpty(clientSecret);
                if (flag2)
                {
                    throw new Exception("Infiniti password name must be provided.  Please fix the connector settings in Manage.  Manage -> Settings -> Connector Settings -> SpringCM Connector");
                }
                bool flag3 = string.IsNullOrEmpty(authURL);
                if (flag3)
                {
                    throw new Exception("An endpoint must be provided.  Please fix the connector settings in Manage.  Manage -> Settings -> Connector Settings -> SpringCM Connector");
                }
                bool flag4 = string.IsNullOrEmpty(requestURL);
                if (flag4)
                {
                    throw new Exception("An endpoint must be provided.  Please fix the connector settings in Manage.  Manage -> Settings -> Connector Settings -> SpringCM Connector");
                }

                for (int i = 0; i < properties.Documents.Count; i++)
                {
                    string docName = properties.Documents[i].DisplayName;
                    string text    = await this.GetDocumentTextAsync(properties, properties.Documents[i]);

                    string extension = properties.Documents[i].Extension;
                    if (extension == ".xml")
                    {
                        xmlPayload = text;
                    }
                    else
                    {
                        workflowDocs["Items"].Add(text);
                    }
                    text = null;
                }

                HttpClientHandler handler = new HttpClientHandler();
                HttpClient        client  = new HttpClient(handler);
                client.DefaultRequestHeaders.ExpectContinue = new bool?(false);
                JObject jobject = new JObject();
                jobject.Add("client_id", clientId);
                jobject.Add("client_secret", clientSecret);
                JObject login = jobject;
                if (debug)
                {
                    this.Log("JSON payload: " + login.ToString(), properties.Context.UserGuid, LogLevel.Info);
                    properties.AddMessage("JSON payload: " + login.ToString(), "SpringCM Initiate Workflow");
                }
                HttpResponseMessage httpResponseMessage = await client.PostAsync(authURL, new StringContent(login.ToString(), Encoding.UTF8, "application/json"));

                HttpResponseMessage authResponse = httpResponseMessage;
                httpResponseMessage = null;
                if (!authResponse.IsSuccessStatusCode)
                {
                    string text2 = await authResponse.Content.ReadAsStringAsync();

                    string authResponseContent = text2;
                    text2 = null;
                    this.Log(string.Concat(new object[]
                    {
                        "Could not make login web service call.  Response status code: ",
                        authResponse.StatusCode,
                        " response content",
                        authResponseContent,
                        " response reason phrase",
                        authResponse.ReasonPhrase
                    }), properties.Context.UserGuid, LogLevel.Info);
                    authResponseContent = null;
                }
                string bearerToken = string.Empty;
                string text3       = await authResponse.Content.ReadAsStringAsync();

                JObject token = JObject.Parse(text3);
                text3       = null;
                bearerToken = token["access_token"].ToString();
                JObject jobject2 = new JObject();

                jobject2.Add("Name", workflowName);
                jobject2.Add("Params", xmlPayload);
                if (workflowDocs["Items"].Count > 0)
                {
                    jobject2.Add("WorkflowDocuments", JsonConvert.SerializeObject(workflowDocs));
                }

                JObject workflow_config = jobject2;
                client.DefaultRequestHeaders.Add("Authorization", "Bearer " + bearerToken);
                HttpResponseMessage httpResponseMessage2 = await client.PostAsync(requestURL, new StringContent(workflow_config.ToString(), Encoding.UTF8, "application/json"));

                HttpResponseMessage generateResponse = httpResponseMessage2;
                httpResponseMessage2 = null;
                string text4 = await generateResponse.Content.ReadAsStringAsync();

                string generateResponseContent = text4;
                text4 = null;
                if (!generateResponse.IsSuccessStatusCode)
                {
                    this.Log(string.Concat(new object[]
                    {
                        "Could not make request web service call.  Response status code: ",
                        generateResponse.StatusCode,
                        " response content",
                        generateResponseContent,
                        " response reason phrase",
                        generateResponse.ReasonPhrase
                    }), properties.Context.UserGuid, LogLevel.Info);
                    properties.AddMessage(string.Concat(new object[]
                    {
                        "Could not make request web service call.  Response status code: ",
                        generateResponse.StatusCode,
                        " response content",
                        generateResponseContent,
                        " response reason phrase",
                        generateResponse.ReasonPhrase
                    }), "Infiniti REST Action");
                    throw new Exception("Error calling SpringCM");
                }

                actionResult.Result = Intelledox.QAWizard.Design.ActionResultType.Success;
                JObject jsonResponse = JObject.Parse(generateResponseContent);
                string  href         = jsonResponse["Href"].ToString();
                string  workflowID   = href.Substring(href.Length - 36);
                actionResult.Outputs = new List <Intelledox.Model.ActionOutput> {
                    new Intelledox.Model.ActionOutput()
                    {
                        ID    = _workflowID,
                        Name  = "Workflow ID",
                        Value = workflowID
                    }
                };
                settings         = null;
                clientId         = null;
                clientSecret     = null;
                authURL          = null;
                requestURL       = null;
                workflowName     = null;
                xmlPayload       = null;
                handler          = null;
                client           = null;
                login            = null;
                authResponse     = null;
                bearerToken      = null;
                token            = null;
                workflow_config  = null;
                generateResponse = null;
            }
            catch (ArgumentNullException ane)
            {
                properties.AddMessage("ArgumentNullException " + ane.Message, "SpringCM Initiate Workflow");
                properties.AddMessage("ArgumentNullException " + ane.InnerException.ToString(), "SpringCM Initiate Workflow");
                actionResult.Result = Intelledox.QAWizard.Design.ActionResultType.Fail;
            }
            catch (HttpRequestException hre)
            {
                properties.AddMessage("HttpRequestException " + hre.Message, "SpringCM Initiate Workflow");
                properties.AddMessage("HttpRequestException " + hre.InnerException.ToString(), "SpringCM Initiate Workflow");
                actionResult.Result = Intelledox.QAWizard.Design.ActionResultType.Fail;
            }
            catch (Exception ex)
            {
                properties.AddMessage("Exception " + ex.Message, "SpringCM Initiate Workflow");
                properties.AddMessage("Exception " + ex.Message.ToString(), "SpringCM Initiate Workflow");
                actionResult.Result = Intelledox.QAWizard.Design.ActionResultType.Fail;
            }
            return(actionResult);
        }
Ejemplo n.º 27
0
		public void GetActionProperties(ref ActionProperties actionProperties)
		{

		}
Ejemplo n.º 28
0
    public void DisplayActionToTake()
    {
        ActionProperties actionProperties = ReturnCurrentActionProperties();

        Debug.Log(string.Format("You need to {0} on the monsters {1} with {2}.", actionProperties.ActionType, actionProperties.HotSpotLocation, actionProperties.holdableType), this);
    }
Ejemplo n.º 29
0
 public void GetActionProperties(ref ActionProperties actionProperties)
 {
     // throw new NotImplementedException();
 }