Commit graph

3676 commits

Author SHA1 Message Date
jdevillard b06589998e
V3 designer/react wrapper (#3851)
* add react workspace and wrapper

* add react sample application

* update angular generated file

---------

Co-authored-by: Jérémie DEVILLARD <jdevillard@users.noreply.github.com>
2023-03-30 09:52:50 +02:00
GitHub Action f1b373b14d Updated designer version to 3.0.3-preview.76 2023-03-29 14:57:21 +00:00
Gürkan Güran 0a9e290072 Updated PAT secret name 2023-03-29 16:40:29 +02:00
GitHub Action 67d1fbfb47 Updated designer version to 3.0.3-preview.74 2023-03-28 23:21:10 +00:00
Gürkan Güran a96b63c14e Updated pipeline to set the exact designer version number in package.json 2023-03-29 01:17:04 +02:00
GitHub Action 0a3eed00c7 Update Elsa Workflows Designer dependency to version 2023-03-28 23:11:06 +00:00
Gürkan Güran a060e80819 Fixed missing preview tag issue 2023-03-28 21:29:22 +02:00
Sipke Schoorstra 3d46b9558d Fix loss of input/output settings upon restoration of dependency workflow 2023-03-28 15:31:02 +02:00
Sipke Schoorstra 877a65fe13 Fix loss of output 2023-03-28 13:02:31 +02:00
Sipke Schoorstra f2dd77e37c Merge remote-tracking branch 'origin/v3' into v3 2023-03-27 22:02:47 +02:00
Sipke Schoorstra 26d872c14d Update designer package.json 2023-03-27 22:02:43 +02:00
Gürkan Güran b195d1f0a6 Refresh activity descriptors on import 2023-03-27 21:46:17 +02:00
Sipke Schoorstra 62c0e024d2 Update package-lock 2023-03-27 21:11:15 +02:00
Sipke Schoorstra dcd4ae121f Update referenced NPM package version 2023-03-27 21:05:12 +02:00
Sipke Schoorstra dafe598252 Update GH actions for designer 2023-03-27 21:00:27 +02:00
Sipke Schoorstra 8d8d8730cf Update designer readme 2023-03-27 20:58:10 +02:00
Sipke Schoorstra b87961ad5a Bump designer version 2023-03-27 20:54:06 +02:00
Sipke Schoorstra c91458a2f6 Change node options 2023-03-27 20:26:22 +02:00
Sipke Schoorstra 5b4a39cff2 Merge remote-tracking branch 'origin/v3' into v3 2023-03-27 20:10:45 +02:00
Sipke Schoorstra 7b7cbcc801 Bump Elsa designer revision version 2023-03-27 20:10:40 +02:00
Sipke Schoorstra 9142b97f25 Bump Elsa version 2023-03-27 20:10:14 +02:00
Sipke Schoorstra 38298a792e Reference selected variable by ID rather than by name 2023-03-27 19:11:25 +02:00
gurkanguran fab9470504
Importing workflows regardless of the order (#3833)
* Import workflows regardless of the order

* Store original activity json
2023-03-27 12:48:16 +02:00
Sipke Schoorstra aabdce5ff4 Refactor response models for Application and User 2023-03-27 11:36:11 +02:00
Sipke Schoorstra 97b8d2ae7d Fix JWT Bearer options configurator 2023-03-27 11:35:49 +02:00
Sipke Schoorstra ded2966416 Add missing AdminRoleProvider 2023-03-27 11:35:33 +02:00
Sipke Schoorstra bf810e7d7a Add endpoint to create users 2023-03-27 00:43:39 +02:00
Sipke Schoorstra 63c104d428 Update Program 2023-03-27 00:02:45 +02:00
Sipke Schoorstra 30c4e5b1e7
Implement API key authentication (#3834)
* Implement API key storage

* Implement API key validation

* Implement EF Core providers
2023-03-26 23:53:17 +02:00
Sipke Schoorstra cebf6f12e3 Add integration test for reading composite activity output 2023-03-24 22:25:48 +01:00
Sipke Schoorstra 0e992a9cbd Ensure outputs on WorkflowDefinitionActivity are declared in memory register
This ensures that activities in the workflow setting a variable assign it to the right location in the right memory register.
2023-03-24 20:59:15 +01:00
Sipke Schoorstra ac8e43cbed Ensure variables declared on a Composite activity get declared 2023-03-24 20:58:06 +01:00
Sipke Schoorstra 5aefa30886 Rename helper TryGet to GetOrDefault 2023-03-24 20:57:27 +01:00
Sipke Schoorstra 21e2e2d811 Generate UUID for new variables
This fixes the issue where a new variable that is selected from an activity's output won't be linked to the variable.
2023-03-24 20:52:04 +01:00
Sipke Schoorstra a8a05bcf4d Fix issue with checkbox component 2023-03-24 11:12:10 +01:00
Sipke Schoorstra b76442859b Fix handling of sequence type serialization 2023-03-24 11:11:56 +01:00
Sipke Schoorstra 27e2deab4d Update workflow server sample project with workflow state exporter 2023-03-24 11:11:27 +01:00
jdevillard 97d56ae47b
V3 designer/angular wrapper (#3829)
* init lerna multi repo

* move project

* add @types/node

* init angular project

* fix workspace name

* update packages init

* change level of import due to monorepo

* add angular target

* add angular loading

User components copy instead of component.ts created by the framework

* skip lib check to avoid issue with antl/x6 libraries

 type parameter might need an `extends Events.EventArgs` constraint in /node_modules/@antv/x6/lib/common/basecoat.d.ts:3:31

* fix type declaration

* change Event<Array<Type>> to Event<Type[]> to allow angular wrapper build

* add class for angular wrapper

* add angular component library -- need rename

* exclude component context-consumer

* change interface available for package

* change public method and add publishCurrentWokflow

* add angular elsa dashboard

* add angular sample

* commit package lock

* add refresh activities

* rename library package to @elsa-workflows/elsa-workflows-designer-angular-wrapper

change build to be compatible with lerna

* update README

* update github action to include lerna build

---------

Co-authored-by: Jérémie DEVILLARD <jdevillard@users.noreply.github.com>
2023-03-23 21:58:23 +01:00
gurkanguran ee28ff69e1
Import workflows with subworkflow properly (#3825)
* Update activity registry on workflow creation

* Read subworkflows properly from json file

---------

Co-authored-by: Sipke Schoorstra <sipkeschoorstra@outlook.com>
2023-03-23 11:23:12 +01:00
gurkanguran e4789cf85b
Reference variable with Id instead of Name to prevent issues with updating name (#3814)
* Implemented Id property for variable for memory reference

* Removed debugger

* Fixed the issue with memory block reference of variable

* Fixed infinite recursive calling issue

* Handle variables with ID already containing

* Update JS variable getters based on declared variables

* Prevent Export from including composite roots

* Update JS evaluator with support for reading and writing variables in scope

* Fix polymorphic converter with support for arrays

---------

Co-authored-by: Sipke Schoorstra <sipkeschoorstra@outlook.com>
2023-03-22 22:50:26 +01:00
Sipke Schoorstra 8289b03f79 Fix JSON serialization issues 2023-03-22 19:28:38 +01:00
Sipke Schoorstra 8ba344f95a Fix potential null value for latest version in activity-version-settings.tsx 2023-03-22 16:43:57 +01:00
Sipke Schoorstra 9f3d654cbc Update JSON property dictionary serialization to maintain original .NET types 2023-03-22 12:19:23 +01:00
Sipke Schoorstra 32db4a75fd Remove oracle code for entities not part of the current DB context
Fixes #3804
2023-03-20 21:52:11 +01:00
Sipke Schoorstra 57882a5a80 Add support for triggering event synchronous and specific workflow instance targeting 2023-03-20 21:38:00 +01:00
Sipke Schoorstra fad27d0fb0
Refactor composite activity input and scoped memory (#3815)
* Incremental work

* Enable control over when to include full compositie root

* Cleanup

* Update WorkflowDefinitionActivity

* Implement input as variables

* Delete unused class

* Remove less common types

* Rename ExpandoObject to JSON

* Implement variable scoping

* Remove parent/child relationship from MemoryRegister

* Add support for sending input to "trigger event" endpoint

* Add support for configuring input storage driver

* Remove unused namespace imports

* Auto-register activity types when running a workflow

* Fix missing variables from containers
2023-03-20 19:55:11 +01:00
Sipke Schoorstra a9e67b9b1c Add support for object literals to Outcome activity 2023-03-17 21:11:55 +01:00
Sipke Schoorstra c56f27c580 Fix activity version upgrade 2023-03-17 19:00:49 +01:00
Sipke Schoorstra dc2dcb44a9 Fix missing fields on export 2023-03-15 21:40:28 +01:00
Sipke Schoorstra 1c013efa38 Fix WorkflowDefinitionActivityProvider
In addition to yielding defined outcomes as ports, the Root activity needs to be included as well in order for child activities to be visible to the activity walker.
2023-03-15 21:32:40 +01:00