sartography / spiff-arena

SpiffWorkflow is a software development platform for building, running, and monitoring executable diagrams
https://www.spiffworkflow.org/
GNU Lesser General Public License v2.1
63 stars 42 forks source link

Uploading JSON for forms #1442

Open sashayar13 opened 4 months ago

sashayar13 commented 4 months ago

When working on a new form as part of an user task, if we want to upload (copy/paste) the JSON without using the Form builder, then we cannot see the graphical representation of the fields in the Form Preview.

— Make the form editor work from the files menu on the main process instance page

See https://dev.app.spiff.status.im/process-models/manage-procurement:vendor-lifecycle-management:vendor-onboarding:vendor-onboarding/form/Vendor data form-schema.json

created on behalf of @MarD0607

related to https://github.com/sartography/bpmn-js-spiffworkflow/issues/77

calexh-sar commented 3 weeks ago

@madhurrya would you please check if this is an issue as described.

madhurrya commented 3 weeks ago

@calexh-sar I tested by copy pasting some sample forms I had and they show the preview as expected. image

But if I copy a complex form containing variables etc then it can show an error if that info is not in the task data. Even if I set it in task data, the preview shows the same error. But if I run the process it works fine. So for the forms using task data this issue is there. image image

I think it'll be good to fix this