Skip to content

This issue was moved to a discussion.

You can continue the conversation there. Go to discussion →

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

Question: How to follow Dev Branch? #1

Closed
GeorgeS2019 opened this issue Jul 21, 2023 · 13 comments
Closed

Question: How to follow Dev Branch? #1

GeorgeS2019 opened this issue Jul 21, 2023 · 13 comments
Labels
question Further information is requested

Comments

@GeorgeS2019
Copy link

@sfmskywalker
Thx for making great progress.

Just wonder how to follow and test what has been developed

The WASP client itself will not run on its own?

@sfmskywalker
Copy link
Member

sfmskywalker commented Jul 22, 2023

Thanks!

The studio needs to be able to connect to a running Elsa Workflows server. What I do during development is have the Elsa.WorkflowServer.Web project running (from the v3 branch in the elsa-core repo in the bundles folder).

Before you can run the Studio (either Server or Wasm from the hosts folder), you need to build client assets using npm install & npm build, in the Elsa.Studio.Workflows.Designer project’s ClientLib folder (look for the folder containing package.json).

I’m also happy to share a screen and show you, just let me know.

@GeorgeS2019
Copy link
Author

@sfmskywalker

Here is the break when attempting to run Elsa.WorkflowServer.Web with the error below

What steps did I miss. Thanks

Microsoft.Data.Sqlite.SqliteException
  HResult=0x80004005
  Message=SQLite Error 1: 'table "WorkflowDefinitions" already exists'.
  Source=Microsoft.Data.Sqlite
  StackTrace:
   at Microsoft.Data.Sqlite.SqliteException.ThrowExceptionForRC(Int32 rc, sqlite3 db)
   at Microsoft.Data.Sqlite.SqliteCommand.<PrepareAndEnumerateStatements>d__64.MoveNext()
   at Microsoft.Data.Sqlite.SqliteCommand.<GetStatements>d__54.MoveNext()
   at Microsoft.Data.Sqlite.SqliteDataReader.NextResult()
   at Microsoft.Data.Sqlite.SqliteCommand.ExecuteReader(CommandBehavior behavior)
   at Microsoft.Data.Sqlite.SqliteCommand.ExecuteNonQuery()
   at System.Data.Common.DbCommand.ExecuteNonQueryAsync(CancellationToken cancellationToken)
--- End of stack trace from previous location ---
   at Microsoft.EntityFrameworkCore.Storage.RelationalCommand.<ExecuteNonQueryAsync>d__15.MoveNext()
   at Microsoft.EntityFrameworkCore.Storage.RelationalCommand.<ExecuteNonQueryAsync>d__15.MoveNext()
   at Microsoft.EntityFrameworkCore.Storage.RelationalCommand.<ExecuteNonQueryAsync>d__15.MoveNext()
   at Microsoft.EntityFrameworkCore.Migrations.Internal.MigrationCommandExecutor.<ExecuteNonQueryAsync>d__1.MoveNext()
   at Microsoft.EntityFrameworkCore.Migrations.Internal.MigrationCommandExecutor.<ExecuteNonQueryAsync>d__1.MoveNext()
   at Microsoft.EntityFrameworkCore.Migrations.Internal.MigrationCommandExecutor.<ExecuteNonQueryAsync>d__1.MoveNext()
   at Microsoft.EntityFrameworkCore.Migrations.Internal.MigrationCommandExecutor.<ExecuteNonQueryAsync>d__1.MoveNext()
   at Microsoft.EntityFrameworkCore.Migrations.Internal.Migrator.<MigrateAsync>d__15.MoveNext()
   at Elsa.EntityFrameworkCore.Common.RunMigrationsHostedService`1.<StartAsync>d__2.MoveNext() in \elsa-core\src\modules\Elsa.EntityFrameworkCore\Common\RunMigrationsHostedService.cs:line 22
   at Elsa.EntityFrameworkCore.Common.RunMigrationsHostedService`1.<StartAsync>d__2.MoveNext() in \elsa-core\src\modules\Elsa.EntityFrameworkCore\Common\RunMigrationsHostedService.cs:line 23
   at Microsoft.Extensions.Hosting.Internal.Host.<StartAsync>d__12.MoveNext()
   at Microsoft.Extensions.Hosting.HostingAbstractionsHostExtensions.<RunAsync>d__4.MoveNext()
   at Microsoft.Extensions.Hosting.HostingAbstractionsHostExtensions.<RunAsync>d__4.MoveNext()
   at Microsoft.Extensions.Hosting.HostingAbstractionsHostExtensions.Run(IHost host)
   at Microsoft.AspNetCore.Builder.WebApplication.Run(String url)
   at Program.<Main>$(String[] args) in \elsa-core\src\bundles\Elsa.AllInOne.Web\Program.cs:line 75

@sfmskywalker
Copy link
Member

Sounds like you need to delete the Elsa.SQLite.db file.

@GeorgeS2019
Copy link
Author

GeorgeS2019 commented Jul 23, 2023

Elsa.WorkflowServer.Web
image

  • Elsa.Studio.Host.Wasm => fail

image

  • Elsa.Studio.Host.Server => run

image

@sfmskywalker
Copy link
Member

I tried the Wasm project, which didn't build due to, I guess, not having installed the latest .NET SDK while having updated the packages recently. After updating to the latest version of the SDK, I was able to build & run the Wasm project.

@GeorgeS2019
Copy link
Author

Work -> Elsa.Studio.Host.Wasm

msedge_YEZIkQaFYo

@GeorgeS2019
Copy link
Author

@sfmskywalker

First Blazor Workflow Designer

AdrienTorris/awesome-blazor#639 (comment)

@GeorgeS2019 GeorgeS2019 reopened this Jul 25, 2023
@GeorgeS2019
Copy link
Author

@sfmskywalker

Please correct me if I am wrong, the diagram part uses typescript.

I wonder how much work to replace that with Blazor Diagram, (more of trying to get the Blazor Diagram community to contribute) => to have a elsa-studio version using Blazor Diagram and ALL c#

@sfmskywalker
Copy link
Member

You're not wrong, the diagram part uses X6, which is a JS library.

Although I am not planning on replacing that implementation with Blazor Diagram, Elsa Studio is designed in a way that allows for the existence of multiple diagram designers. This means that one could build a custom module that uses Blazor Diagram instead.

@Dishone
Copy link

Dishone commented Aug 4, 2023

Can you publish these packages on nuget?

@sfmskywalker
Copy link
Member

Once the project is stable enough for a release candidate, I will update the build pipeline to deploy the packages to NuGet. Until then, you can get them from this feed: https://f.feedz.io/elsa-workflows/elsa-3/nuget/index.json

@Dishone
Copy link

Dishone commented Aug 5, 2023

thanks and have a nice day

Once the project is stable enough for a release candidate, I will update the build pipeline to deploy the packages to NuGet. Until then, you can get them from this feed: https://f.feedz.io/elsa-workflows/elsa-3/nuget/index.json

@sfmskywalker
Copy link
Member

@GeorgeS2019 I think the question raised in this issue has been answered. If you agree, can we close it?

@sfmskywalker sfmskywalker changed the title How to follow Dev Branch? Question: How to follow Dev Branch? Aug 9, 2023
@sfmskywalker sfmskywalker added the question Further information is requested label Aug 9, 2023
@elsa-workflows elsa-workflows locked and limited conversation to collaborators Aug 9, 2023
@sfmskywalker sfmskywalker converted this issue into discussion #18 Aug 9, 2023

This issue was moved to a discussion.

You can continue the conversation there. Go to discussion →

Labels
question Further information is requested
Projects
None yet
Development

No branches or pull requests

3 participants