#85

Dynamic Actions

    • Created on: Wed, Oct 26 2011 (7 months ago)
    • Reported by: Pilus
    • Assigned to: Pilus
    • Milestone: GHI v.1.99.2
    • Bug detected in Version: -
    • Technical Difficulty: Medium
    • Status: Fixed
    • Priority: Normal (3)
    • Component: Dynamic Actions
    • Permission type: Private
    • Type: Feature
    • Depends on ticket(s): -
    The DynamicAction object holds information about a dynamic action that are associated with an item trough a DynamicActionInstance. The DynamicAction holds the general information about the action, such as scripts, ports and description, while the instance holds the specific information, such as what parameter values are used and what actions should be triggered next. The DynamicActionInstance will be implemented as part of one of the following tickets, so this ticket focuses on implementing the DynamicAction.

    The intended content of the DynamicAction object can be seen here: DynamicAction.png

    The data of the object are given as a table as an argument when created. In details the data it contains is the following:
    guid : a unique identifier string
    name : string
    description : string describing the intention and usage of the action
    category : string with the category for the action. Examples of categories are Communication, Effects, Logic and Data
    version : number
    authorGuid : string
    authorName : string
    script : string. The script that is executed when the action is run.
    ports : a table containing the input and output ports of the action
    inputs : a table containing information about the input variables that can be given to the action when creating the action.
    outputs : a table containing information about the output variables. These are generated in the scripts and outputs a value to a variable (in the environment) or an attribute (in the item stack).
  • Followers
     
    Ico-users Pilus (Assigned To) , Aurorablade 
     
    Attachments
    No attachments
    Associations
     
    No associations
    Activity
     
    User picture

          on Oct 26, 2011 @ 01:05pm UTC * By Pilus

    Status changed from New to Accepted
    User picture

          on Dec 26, 2011 @ 06:48pm UTC * By Pilus

    Description changed from Creation of dynamic action ... to The DynamicAction object ho...
    User picture

          on Dec 26, 2011 @ 07:02pm UTC * By Pilus

    Description changed from The DynamicAction object ho... to The DynamicAction object ho...
    User picture

          on Dec 26, 2011 @ 07:03pm UTC * By Pilus

    Description changed from The DynamicAction object ho... to The DynamicAction object ho...
    User picture

          on Dec 28, 2011 @ 04:12pm UTC * By Aurorablade

    Assigned to set to Aurorablade
    User picture

          on Dec 28, 2011 @ 04:26pm UTC * By Aurorablade

    Status changed from Accepted to In Progress
    User picture

          on Jan 01, 2012 @ 05:47pm UTC * By Pilus

    So far the progress looks good. I will post a detailed description of what needto be done next later today or tomorrow.
    User picture

          on Jan 02, 2012 @ 04:48pm UTC * By Pilus

    I have done a little cleanup in the code so it currently only contains the things specified. We can reinsert some of the functions later, if/when needed.

    The task is just to create our first skeleton for the dynamic action, so more will come later.

    The only thing left is to detail the SetupDynamicActionInfo function (as I have renamed it) so it checks that each of the inputs in the data are in correct form and if not, then give it a fitting default values.

    E.g.
    if type(data.name) == "string" then
         name = data.name;
    else
         name = "";
    end
    User picture

          on Jan 02, 2012 @ 05:22pm UTC * By Pilus

    It might also be relevant now to give the class a simple GetGuid function
    User picture

          on Jan 04, 2012 @ 12:57am UTC * By Pilus

    Assigned to changed from Aurorablade to Pilus
    Status changed from In Progress to Ready for Test
    Sum of Child Work remaining changed from 3.0 to 0.0
    Work remaining changed from 3.0 to 0.0
    The basic dynamic action class is done
    User picture

          on Jan 25, 2012 @ 11:38pm UTC * By Pilus

    Status changed from Ready for Test to Fixed
    Time Expenditure
    Loading