https://bugzilla.wikimedia.org/show_bug.cgi?id=54622
--- Comment #1 from Erik Bernhardson <[email protected]> --- For the first half, i will look into it in the morning. The second half, i probably need to update the various documentation in the root of the directory. For the most part those were written pre-implementation as a way to collect my thoughts on how the implementation should work. As with any documentation, that actual implementation ends up differing as we learn more about the problem space. As it stands currently, the following parameters are accepted by Special:Flow action: This is a string representing the type of action to take. What happens when an action is called depends on the blocks created for the definition. workflow: This is a string 32 char hex id of the specific workflow being referenced. If not provided we load the default workflow specified by the definition. definition: This is a string representing a workflow definition. If not provided this defaults to 'discussion'. Nested parameters, like topic[postId] are parameters for a specific type of block. In this case the topic block. About the postId and the workflowId being the same, this is in part an optimization and simplification in the backend. When we create a new topic we create a Workflow instance with the 'topic' definition. In addition to this workflow we need to create revision to represent the first topic title. This is the optimization, we reuse the uuid of the workflow as the first revision. This simplifies needing to lookup the value, and we still know it will be unused. We can probably default the value of postId to the workflow if not provided when the action is 'history'. Due to the order of loading it would be a bit of a hack to go the other direction. This is also probably much longer than necessary, but perhaps is usefull background information. -- You are receiving this mail because: You are the assignee for the bug. You are on the CC list for the bug. _______________________________________________ Wikibugs-l mailing list [email protected] https://lists.wikimedia.org/mailman/listinfo/wikibugs-l
