Skip to content
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

getting error while restoring state from file which contains subprocess #276

Closed
imrushi opened this issue Jan 2, 2023 · 1 comment
Closed
Assignees
Labels

Comments

@imrushi
Copy link

imrushi commented Jan 2, 2023

Hi, I am getting the below error when I am restoring the state from a file containing a subprocess. Normally it is working fine without a subprocess.

I was using/referring spiff-cli example.
and this doc

$ ./run.py -p order_product -d bpmn/product_prices.dmn bpmn/shipping_costs.dmn -b bpmn/events.bpmn bpmn/call_activity.bpmn -r test6.json
Traceback (most recent call last):
  File "D:\spiff-example-cli\run.py", line 82, in <module>
    wf = serializer.deserialize_json(state.read())
  File "D:\spiff-example-cli\venv\lib\site-packages\SpiffWorkflow\bpmn\serializer\workflow.py", line 143, in deserialize_json
    return self.workflow_from_dict(dct, read_only)
_1
    subprocesses[sp]['tasks'][task_id]['parent'] = None
KeyError: 'data
@essweine
Copy link
Contributor

essweine commented Jan 2, 2023

I'll look into this.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
Status: Resolved
Development

No branches or pull requests

3 participants