Commit graph

3663 commits

Author SHA1 Message Date
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
Sipke Schoorstra 69f7e80415 Update Complete activity with support different outcome types 2023-03-15 21:31:32 +01:00
herblinernexxbizz 95ca326133
Features/v3 add short and full guid (#3800)
* add full guid and shortguid as javascript/jint functions with intellisense

* add guid as string and rename other method
2023-03-15 12:29:07 +01:00
Sipke Schoorstra c81e328c8d Fix early exit on workflow definition activity input evaluation 2023-03-14 08:17:04 +01:00
Sipke Schoorstra a11798e936 Update ActivityDescriptorExtensions to potentially return null when getting an attribute 2023-03-14 08:16:04 +01:00
Sipke Schoorstra 85fb7360b4 Add dictionary extension methods to get value or default 2023-03-14 08:14:42 +01:00
Sipke Schoorstra 6fcf23dffa Add XML comments & small cleanup 2023-03-14 08:14:14 +01:00
Sipke Schoorstra 262160113e Add support for converting ExpandoObject into .NET type to ObjectConverter 2023-03-14 08:12:45 +01:00
Sipke Schoorstra ad27a35db4 Fix Switch activity port provider for "default" case 2023-03-14 08:12:04 +01:00
gurkanguran f7f5290d04
Added github workflow to automate designer package update process (#3791)
* Updated package.json files

* Added npm pipeline for designer

* Updated Elsa.Workflows.Designer package
2023-03-14 08:07:15 +01:00
Sipke Schoorstra c1dca8fbe2
Fixes for Journal (#3792)
* Include NodeID in execution log and update workflow journal component

* Recreate Runtime migrations
2023-03-14 08:03:44 +01:00
Sipke Schoorstra d8b95db04e Add support for providing workflow input via dispatch endpoint 2023-03-13 12:31:23 +01:00
Sipke Schoorstra 2f8dde1f99 Bump designer version 2023-03-13 11:26:44 +01:00
Sipke Schoorstra bb34f760c4 Fix connection restore & copy/paste issues 2023-03-13 11:24:44 +01:00