nocode-js/sequential-workflow-designer

How to customize components?

Closed this issue · 7 comments

Is it only supported by the pro version?

b4rtaz commented

It depends what you want to customize.

in my flow defination, there are many task's type, like retreive data task , or http task , or send mail task, i think that in my case i need to customize the task' properties to fix different type properties editor. if possible , i need to customize the different type task-step's ui for indicate the task view ;
image

and i have annother question , what's their relationship (editor, model, designer )

b4rtaz commented

The model of a step has two different properties:

  • type - task type (http task, send mail task, etc),
  • componentType - component type responsible for rendering a step on canvas.

So you may create multiple steps with the same componentType:

{
   type: 'httpTask',
   comonentType: 'task'
   // ...
}
{
   type: 'sendMail',
   comonentType: 'task'
   // ...
}

In last week we introduced the Sequential Workflow Editor, it helps to solve the problem with building the editor. Check this demo (source code).

b4rtaz commented

i have annother question , what's their relationship (editor, model, designer)

Check this article.

b4rtaz commented

@ChenRenHu did I answer the question? Can we close this issue?

@ChenRenHu did I answer the question? Can we close this issue?

ok,thx。