Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
W
workflow_core
Project
Overview
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
open-source
workflow_core
Commits
97d04074
Commit
97d04074
authored
Sep 27, 2018
by
jasl
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
bug fix
parent
b53cbce5
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
4 additions
and
3 deletions
+4
-3
tokens_controller.rb
.../app/controllers/workflows/instances/tokens_controller.rb
+1
-1
workflow.rb
test/dummy/app/models/workflow.rb
+3
-2
No files found.
test/dummy/app/controllers/workflows/instances/tokens_controller.rb
View file @
97d04074
...
...
@@ -39,7 +39,7 @@ module Workflows
def
set_form_model
@form
=
@workflow
.
form
overrides
=
@token
.
place
.
output_transition
.
options
.
field_overrides
.
map
{
|
o
|
{
o
.
name
=>
{
accessibility:
o
.
accessibility
}}
}.
reduce
(
&
:merge
)
overrides
=
@token
.
place
.
output_transition
.
options
.
field_overrides
.
map
{
|
o
|
{
o
.
name
=>
{
accessibility:
o
.
accessibility
}}
}.
reduce
(
&
:merge
)
||
{}
@virtual_model
=
@form
.
to_virtual_model
overrides:
overrides
end
...
...
test/dummy/app/models/workflow.rb
View file @
97d04074
...
...
@@ -19,10 +19,11 @@ class Workflow < WorkflowCore::Workflow
c
=
Bpmn
::
DefinitionContainer
.
parse
(
bpmn_xml
)
return
unless
c
tokens
.
delete_all
instances
.
delete_all
transitions
.
destroy_all
places
.
destroy_all
instances
.
destroy_all
tokens
.
destroy_all
place
=
create_start_place!
type:
"Places::StartPlace"
node_queue
=
c
.
start_event
.
outgoing_ids
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment