-
Notifications
You must be signed in to change notification settings - Fork 71
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Create default workflow on installation #16
Comments
Note that this should dramatically lower the barrier to entry for the module. |
There's been some thought around developer defined workflow templates - at present my thinking is along the lines of
The main problem I see with putting together the workflow definition in requireDefaultRecords is that it still requires some additional configuration around assignees - though it may be a quicker solution in the short term. |
Aha - you'll see my other comment around assignees. ;-) |
The template idea sounds nice, although it doesn't seem critical if #18 was implemented, as it begs the question "what would the parameters be?" I guess the email content could be parameterised. |
There's a start on things at https://github.com/nyeholt/advancedworkflow/tree/workflow_templates The ideas is that you provide a structure via config for the template, which is then interpreted and converted into steps + actions. See https://github.com/nyeholt/advancedworkflow/blob/workflow_templates/_config/workflows.yml as an example structure for defining a workflow template I haven't got to changing a template -> updating existing workflows, but it's a reasonably straightforward process; not going to spend any time just yet if this isn't overall approach isn't considered worthwhile pursuing |
Anyone have further input on my previous commit? I'm tweaking things now to add in updates of template versions; we've got a client who's wanting to use this feature so would like to get things merged across if you think it's a reasonable approach for now. |
The issue here is that there is still some set up to do, from memory the So, no, in my opinion, we should not close this just yet. Sig |
OK, thanks for that - good feedback. |
When you install the module, it would be helpful to create a simple 2-step workflow to show how the system works.
The most straightforward way to do this would be a
requireDefaultRecords()
method that creates the workflow if no workflows exist. That way you could delete the default workflow and it wouldn't come back as long as your had created at least one other workflow.The text was updated successfully, but these errors were encountered: