Skip to content

Need help understanding tasks for generic workflows #161

Answered by geomagilles
Atul-Lohiya asked this question in Q&A
Discussion options

You must be logged in to vote

Hi, yes this will work - once executed the first task won't be executed again. Internally, a task is defined by its name but also its parameters and its "position" (1st task, 2nd task, etc.).

Actually, I worked with a marketing company that does exactly that and uses Infinitic as the workflow engine of their automation service.

The way I would do what (in pseudo code):

class GenericWorkflow extends Workflow implements iGenericWorkflow
{
  private genericTask = newTask(iGenericTaskService.class);
  private workflowDefinitionTask = newTask(iWorkflowDefinitionService.class);

  public  object  run(userId)
  {
     workflowDefinition = workflowDefinitionTask.get(userId)

    for (taskDefiniti…

Replies: 1 comment 5 replies

Comment options

You must be logged in to vote
5 replies
@Atul-Lohiya
Comment options

@geomagilles
Comment options

@geomagilles
Comment options

@Atul-Lohiya
Comment options

@geomagilles
Comment options

Answer selected by geomagilles
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants