aelassas / wexflow

.NET Workflow Engine and Automation Platform
https://wexflow.github.io
MIT License
584 stars 162 forks source link

Getting my task to appear and add to designer. #67

Closed TechyGuy99 closed 8 months ago

TechyGuy99 commented 8 months ago

Here is my task project. I want to create a dummy task and be able to add it to a workflow, but it does not appear in the task search list.

I extracted .net core file to C:\wexflow-7.8-windows-netcore I ran install.bat I ran run.bat I mapped IIS site to the backend folder under folder C:\wexflow-7.8-windows-netcore\Backend

SidekickArchiveReplyWF.zip

image

Task is not in the list

task files are in image

aelassas commented 8 months ago

You need to add your task to the designer: https://github.com/aelassas/wexflow/wiki/Custom-Tasks#designer

You also need to add your task to wexflow engine: https://github.com/aelassas/wexflow/wiki/Custom-Tasks#net-core

TechyGuy99 commented 8 months ago

Thanks, i got it to work. One note though. I found that if i made a mistake in setting up these files and subsequently created a workflow based on that task, that workflow had to be deleted and recreated as it would not load.

TechyGuy99 commented 8 months ago

I think it would be simpler if the system just loaded the assemblies it found in the tasks folder and scanned the classes that implemented the Task base class. That base class should have all the information needed to setup the class, without the need to update json files and xml. ANy class that does not derive from expected base or interface would be ignored.