Skip to content

Commit

Permalink
Merge 3e90f81 into be1d854
Browse files Browse the repository at this point in the history
  • Loading branch information
blancoj committed Nov 15, 2016
2 parents be1d854 + 3e90f81 commit 6af57c2
Show file tree
Hide file tree
Showing 2 changed files with 28 additions and 0 deletions.
4 changes: 4 additions & 0 deletions lib/generators/sufia/install_generator.rb
Expand Up @@ -145,5 +145,9 @@ def install_blacklight_gallery
def datatables
generate 'jquery:datatables:install bootstrap3'
end

def create_workflow
template('workflow.json.erb', "config/workflows/mediated_deposit_workflow.json")
end
end
end
24 changes: 24 additions & 0 deletions lib/generators/sufia/templates/workflow.json.erb
@@ -0,0 +1,24 @@
{
"workflows": [
{
"name": "one_step_mediated_deposit",
"label": "One-step mediated deposit workflow",
"description": "A single-step workflow for mediated deposit",
"actions": [
{
"name": "deposit",
"from_states": [],
"transition_to": "pending_review"
},
{
"name": "approve",
"from_states": [{"names": ["pending_review"], "roles": ["approving"]}],
"transition_to": "complete",
"methods": [
"CurationConcerns::Workflow::ActivateObject"
]
}
]
}
]
}

0 comments on commit 6af57c2

Please sign in to comment.