属性名更改

This commit is contained in:
even 2025-05-22 09:24:59 +08:00
parent fd94a43f9c
commit c09ebec3c7
2 changed files with 6 additions and 6 deletions

View File

@ -35,7 +35,7 @@ public abstract class BaseRunContext {
* */ * */
private LocalDateTime endTime; private LocalDateTime endTime;
private String resourceId; private String resourceId;
private String targetId; private String targetVersionId;
private String targetType; private String targetType;
/** /**
* 整个流水线全局的变量 * 整个流水线全局的变量
@ -47,14 +47,14 @@ public abstract class BaseRunContext {
private Map<String,Object> localVariables; private Map<String,Object> localVariables;
private Map<String,BaseRunContext> childContext; private Map<String,BaseRunContext> childContext;
public BaseRunContext(PipBaseElement contextDef,Integer childCount,BaseRunContext parentContext, LocalDateTime startTime, String resourceId, String targetId, String targetType, Map<String, Object> globalVariables, Map<String, Object> localVariables, Map<String, BaseRunContext> childContext) { public BaseRunContext(PipBaseElement contextDef,Integer childCount,BaseRunContext parentContext, LocalDateTime startTime, String resourceId, String targetVersionId, String targetType, Map<String, Object> globalVariables, Map<String, Object> localVariables, Map<String, BaseRunContext> childContext) {
this.contextDef = contextDef; this.contextDef = contextDef;
this.childCount = childCount; this.childCount = childCount;
this.parentContext = parentContext; this.parentContext = parentContext;
this.state = new AtomicInteger(ContextStateEnum.INIT.getCode()); this.state = new AtomicInteger(ContextStateEnum.INIT.getCode());
this.startTime = startTime; this.startTime = startTime;
this.resourceId = resourceId; this.resourceId = resourceId;
this.targetId = targetId; this.targetVersionId = targetVersionId;
this.targetType = targetType; this.targetType = targetType;
this.globalVariables = globalVariables; this.globalVariables = globalVariables;
this.localVariables = localVariables; this.localVariables = localVariables;

View File

@ -17,16 +17,16 @@ public class PipelineRunContext extends BaseRunContext{
} }
public PipelineRunContext(PipPipeline pipeline,Integer childCount,BaseRunContext parentContext, Map<String, Object> globalVariables, Map<String, Object> localVariables) { public PipelineRunContext(PipPipeline pipeline,Integer childCount,BaseRunContext parentContext, Map<String, Object> globalVariables, Map<String, Object> localVariables) {
this(pipeline,childCount,parentContext,LocalDateTime.now(),pipeline.getResourceId(),pipeline.getTargetId(),pipeline.getTargetType(),globalVariables,localVariables,new ConcurrentHashMap<>()); this(pipeline,childCount,parentContext,LocalDateTime.now(),pipeline.getResourceId(),pipeline.getTargetVersionId(),pipeline.getTargetType(),globalVariables,localVariables,new ConcurrentHashMap<>());
} }
private PipelineRunContext(PipBaseElement contextDef,Integer childCount, BaseRunContext parentContext, LocalDateTime startTime, String resourceId, String targetId, String targetType, Map<String, Object> globalVariables, Map<String, Object> localVariables, Map<String, BaseRunContext> childContext) { private PipelineRunContext(PipBaseElement contextDef,Integer childCount, BaseRunContext parentContext, LocalDateTime startTime, String resourceId, String targetVersionId, String targetType, Map<String, Object> globalVariables, Map<String, Object> localVariables, Map<String, BaseRunContext> childContext) {
super( contextDef super( contextDef
,childCount ,childCount
,parentContext ,parentContext
,startTime ,startTime
, resourceId , resourceId
, targetId , targetVersionId
, targetType , targetType
, globalVariables , globalVariables
, localVariables , localVariables