Uploaded image for project: 'Workflow'
  1. Workflow
  2. WORKFLOW-19

Enhance Workflow to be usable outside a request

    • Icon: Improvement Improvement
    • Resolution: Fixed
    • Icon: Major Major
    • 3.9
    • None
    • None

      Currently many stuff are done by seeking in the request object, should be taken in the transiant vars (the caller should add request paremeters to transiant vars)

          [WORKFLOW-19] Enhance Workflow to be usable outside a request

          • AbstractWorkflowAction
            • does not anymore fill the Redirector : since workflow can be called outside a request, a redirector is a non-sense. If a redirection is needed, the instruction should be returned by the result map, and the caller should do it itself.
            • fill a new CONTEXT_PARAMETERS_KEY transiant var, with the parent context (so the json parameters) when available.
            • fill a new CheckRightsCondition.FORCE transiant var upon the INTERNAL_ALLOWED_REQUEST_ATTR request attribute
          • AbstractWorkflowComponent
            • The getRedirector helper has been removed
            • The getRequest method has been removed (we should never more use that, to read parameters or set attributes)
            • A new getContextParameters was added to replace getJSONParameters
          • CheckRightCondition
            • Was reading a request attribute INTERNAL_ALLOWED_REQUEST_ATTR, and is now reading a transiant var called FORCE

          Raphaël Franchet added a comment - AbstractWorkflowAction does not anymore fill the Redirector : since workflow can be called outside a request, a redirector is a non-sense. If a redirection is needed, the instruction should be returned by the result map, and the caller should do it itself. fill a new CONTEXT_PARAMETERS_KEY transiant var, with the parent context (so the json parameters) when available. fill a new CheckRightsCondition.FORCE transiant var upon the INTERNAL_ALLOWED_REQUEST_ATTR request attribute AbstractWorkflowComponent The getRedirector helper has been removed The getRequest method has been removed (we should never more use that, to read parameters or set attributes) A new getContextParameters was added to replace getJSONParameters CheckRightCondition Was reading a request attribute INTERNAL_ALLOWED_REQUEST_ATTR, and is now reading a transiant var called FORCE

            Unassigned Unassigned
            raphael Raphaël Franchet
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Created:
              Updated:
              Resolved: