Comments (4)
I am able to reproduce the problem with this simple code.
The problem is in the Box
class. It overrides standard dict methods with dict keys.
from SpiffWorkflow.bpmn.PythonScriptEngineEnvironment import Box
# create a standard dict
d = {"items": [1,2], "toto": 'titi'}
# create a Box dict
b = Box(d)
# iterate items() on standard dict is OK
d.items()
# iterate items() on Box dict is NOT OK
b.items()
Box
is deprecated, but the deprecation message does not mention the new class to use...
Can you tell me what class to use in replacement of Box
?
I want to test this code with the new class replacing Box
to see if the problem persist.
from spiff-arena.
Thanks for the update, we have been internally debating on Box
for a bit. Hopefully the diff that replaces Box is all red lines. I do appreciate following up on this, will add more points to our discussion.
from spiff-arena.
Also forgot to address the replacement for Box
- at least within arena is based on this line - https://github.com/sartography/spiff-arena/blob/main/spiffworkflow-backend/src/spiffworkflow_backend/services/process_instance_processor.py#L264
You'd want to switch it to NonTaskDataBasedScriptEngineEnvironment
as the base class, but this hasn't been tested in a while and looks like it may lead to issues based on the comment above.
from spiff-arena.
I have opened sartography/SpiffWorkflow#359 in the SpiffWorkflow library to remove Box
.
from spiff-arena.
Related Issues (20)
- Duplicate Help Text Displayed on Guest Form Typeahead Field
- Signal Buttons are not working on Guest Form Human tasks HOT 1
- Date field is not formatting correctly when entering date in "dd-mmm-yyyy" format HOT 1
- Provide easy access to view task data
- Guest user form - Interstitial instructions not displayed HOT 1
- Guest user form - Home on error HOT 1
- Make openid scope configurable HOT 2
- URL with dashes when sanitized HOT 5
- Spiff bounties process Issues HOT 12
- Madhu Test Bounty Issue 1 in spiff arena
- refactor off @monaco-editor/react and just use monaco-editor itself
- Messages related issues (in qa5) - 3 HOT 18
- Custom widgets adjustments for MUI HOT 2
- Madhu Test Bounty Issue 2 in spiff arena
- Create a job which would recover failed instances
- OpenKM DMS connector integration - Phase 2 HOT 1
- Store User Preferences in a Data Store HOT 2
- Save and Close not working HOT 1
- Stuck in running state HOT 20
- Messages related issues (in dev.app) - 4 HOT 11
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from spiff-arena.