Uploaded image for project: 'Commons Chain'
  1. Commons Chain
  2. CHAIN-45

Proposed code to allow decoupling of key names in contexts from key names used in Command code

Attach filesAttach ScreenshotAdd voteVotersWatch issueWatchersCreate sub-taskLinkCloneUpdate Comment AuthorReplace String in CommentUpdate Comment VisibilityDelete Comments
    XMLWordPrintableJSON

Details

    • New Feature
    • Status: Open
    • Minor
    • Resolution: Unresolved
    • None
    • None
    • Base
    • None
    • Java environments

    Description

      Command code typically refers to context values using fixed keys. This makes it difficult to create commands that are truly re-usable; it's often necessary to include commands to move values between keys so that the values are where the various commands expect them.

      The attached code allows command code to refer to keys using a "logical" name which is mapped at runtime to the actual keys to be used to access the context. The mapping between the logical and actual names is specified per command instance and is easily set up in a catalog XML file.

      The package also supports nested hierarchical contexts and allows contexts within a hierarchy to be logically mapped in a similar way.

      Attachments

        Activity

          This comment will be Viewable by All Users Viewable by All Users
          Cancel

          People

            Unassigned Unassigned
            peteford Pete Ford

            Dates

              Created:
              Updated:

              Slack

                Issue deployment