Skip to content

Commit

Permalink
🐛 fix lost variables when update definition #d05e6a9e0
Browse files Browse the repository at this point in the history
#d05e6a9e002004cd51d275e008da97d268c092aa
  • Loading branch information
jxnkwlp committed Sep 24, 2023
1 parent 09b0d75 commit 87b839d
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 7 deletions.
Expand Up @@ -29,5 +29,7 @@ public class WorkflowDefinitionCreateOrUpdateDto

public WorkflowPersistenceBehavior PersistenceBehavior { get; set; } = WorkflowPersistenceBehavior.WorkflowBurst;

public WorkflowContextOptions ContextOptions { get; set; }
public WorkflowContextOptions ContextOptions { get; set; }

public Dictionary<string, object> Variables { get; set; }
}
Expand Up @@ -34,4 +34,6 @@ public class WorkflowDefinitionDto : AuditedEntityDto<Guid>
public WorkflowContextOptions ContextOptions { get; set; }

public Dictionary<string, object> CustomAttributes { get; set; }

public Dictionary<string, object> Variables { get; set; }
}
Expand Up @@ -7,16 +7,11 @@ namespace Passingwind.Abp.ElsaModule.WorkflowDefinitions;
public class WorkflowDefinitionVersionCreateOrUpdateDto
{
[Required]
public WorkflowDefinitionDto Definition { get; set; }
public WorkflowDefinitionCreateOrUpdateDto Definition { get; set; }

public List<ActivityCreateOrUpdateDto> Activities { get; set; }

public List<ActivityConnectionCreateDto> Connections { get; set; }

public bool IsPublished { get; set; }

public class WorkflowDefinitionDto : WorkflowDefinitionCreateOrUpdateDto
{
public Dictionary<string, object> Variables { get; set; }
}
}

0 comments on commit 87b839d

Please sign in to comment.