workflow: impovements for 3.0 (MAGNOLIA-863)

[MAGNOLIA-879] context: no separation between context and params Created: 17/May/06  Updated: 23/Jan/13  Resolved: 13/Jun/06

Status: Closed
Project: Magnolia
Component/s: None
Affects Version/s: 3.0 Beta 1
Fix Version/s: 3.0 RC1

Type: Sub-task Priority: Major
Reporter: Philipp Bärfuss Assignee: Philipp Bärfuss
Resolution: Fixed Votes: 0
Labels: None
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified

Template:
Date of First Response:

 Description   

current implementation:
-------------------------------

  • tree prepares params (map)
  • passes the map to the context
  • calls command.execute(context)
  • command gets params (the map) from context
  • if the command starts a workflow it neeeds to populate the workitem which is done hardcoded
  • if a command is called from out the workflow it does
  • take the item
  • creates again the parameters map (hard coded)
  • puts this into the context and calls finaly the command

intendend implementation:
-----------------------------------

  • the parameters a set to the context (the magnolia context in the locale scope)
  • the locale magnolia context is passed to the command
  • the command used directly this context (to get parameters, manipulate parameters, pass return values, ...)
  • if this command starts a workflow it passes all serializable parameters in the locale scope to the workitem (this should avoid implementing a command for each special case)
  • if the workflow calls a command it creates a context which wraps the workitem (it's exaclty the same as for the request)
  • as an addon we should also wrap the commands configuration in the context so that one can easely pass parameters to the command (like the workflow name to start)


 Comments   
Comment by Philipp Bracher [ 13/Jun/06 ]
  • we pass all serializable viariables to the workitem (the context is transparent for command called during the flow)
  • the workitem is warpped into a context if a command is called in the flow ( command manipulates the workitem implicitely)
Generated at Mon Feb 12 03:21:31 CET 2024 using Jira 9.4.2#940002-sha1:46d1a51de284217efdcb32434eab47a99af2938b.