Skip to content

Commit

Permalink
insert object id to task_data and current.input (if defined in task)
Browse files Browse the repository at this point in the history
rref #5357
#GH-64
  • Loading branch information
evrenesat committed Aug 31, 2016
1 parent 2392cb8 commit b3075f8
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions zengine/engine.py
Original file line number Diff line number Diff line change
Expand Up @@ -248,6 +248,11 @@ def start_engine(self, **kwargs):
if not self.current.new_token:
self.wf_state = self.current.wf_cache.get(self.wf_state)
self.current.workflow_name = self.wf_state['name']
# if we have a pre-selected object to work with,
# inserting it as current.input['id'] and task_data['object_id']
if self.wf_state['subject']:
self.current.input['id'] = self.wf_state['subject']
self.current.task_data['object_id'] = self.wf_state['subject']
self.check_for_authentication()
self.check_for_permission()

Expand Down

0 comments on commit b3075f8

Please sign in to comment.