mirror of
https://github.com/open-metadata/OpenMetadata.git
synced 2025-08-17 13:36:56 +00:00
Testing (#20632)
This commit is contained in:
parent
ec0e23d1a2
commit
c2d099eca1
@ -138,6 +138,7 @@ public class CreateAndRunIngestionPipelineTask implements NodeInterface {
|
||||
.addFieldExtension(inputNamespaceMapExpr)
|
||||
.addFieldExtension(pipelineServiceClientExpr)
|
||||
.setAsync(true)
|
||||
.exclusive(true)
|
||||
.build();
|
||||
}
|
||||
|
||||
@ -181,6 +182,8 @@ public class CreateAndRunIngestionPipelineTask implements NodeInterface {
|
||||
.addFieldExtension(ingestionPipelineMapperExpr)
|
||||
.addFieldExtension(pipelineServiceClientExpr)
|
||||
.addFieldExtension(inputNamespaceMapExpr)
|
||||
.setAsync(true)
|
||||
.exclusive(true)
|
||||
.build();
|
||||
}
|
||||
|
||||
|
@ -106,6 +106,7 @@ public class RunAppTask implements NodeInterface {
|
||||
.addFieldExtension(inputNamespaceMapExpr)
|
||||
.addFieldExtension(pipelineServiceClientExpr)
|
||||
.setAsync(true)
|
||||
.exclusive(true)
|
||||
.build();
|
||||
}
|
||||
|
||||
|
@ -9,6 +9,7 @@ public class ServiceTaskBuilder extends FlowableElementBuilder<ServiceTaskBuilde
|
||||
private String implementation;
|
||||
private String implementationType = "class";
|
||||
private boolean async = false;
|
||||
private boolean exclusive = false;
|
||||
private final List<FieldExtension> fieldExtensions = new ArrayList<>();
|
||||
|
||||
public ServiceTaskBuilder implementation(String implementation) {
|
||||
@ -31,6 +32,11 @@ public class ServiceTaskBuilder extends FlowableElementBuilder<ServiceTaskBuilde
|
||||
return this;
|
||||
}
|
||||
|
||||
public ServiceTaskBuilder exclusive(boolean exclusive) {
|
||||
this.exclusive = exclusive;
|
||||
return this;
|
||||
}
|
||||
|
||||
@Override
|
||||
public ServiceTask build() {
|
||||
ServiceTask serviceTask = new ServiceTask();
|
||||
@ -39,6 +45,7 @@ public class ServiceTaskBuilder extends FlowableElementBuilder<ServiceTaskBuilde
|
||||
serviceTask.setImplementationType(implementationType);
|
||||
serviceTask.setImplementation(implementation);
|
||||
serviceTask.setAsynchronous(async);
|
||||
serviceTask.setExclusive(exclusive);
|
||||
|
||||
for (FieldExtension fieldExtension : fieldExtensions) {
|
||||
serviceTask.getFieldExtensions().add(fieldExtension);
|
||||
|
Loading…
x
Reference in New Issue
Block a user