Skip to main content

ConnectorService

No overview available.

Attributes

AttributeTypeDescription
CorePlugincore.PluginThis attribute stores an instance of core.Plugin, which provides core functionalities and integrations for the ConnectorService.

Methods


ContainTaskType()

@classmethod
def ContainTaskType(
taskType: string
) - > bool

Checks if the provided task type is among the supported task types for the connector service. Callers use this to validate if a specific task can be handled.

Parameters

NameTypeDescription
taskTypestringThe specific task type to check for support.

Returns

TypeDescription
boolA boolean indicating whether the task type is supported (true) or not (false).

SetSupportedTaskType()

@classmethod
def SetSupportedTaskType(
taskTypes: []string
)

Sets the list of task types that the connector service is configured to support. This method updates the internal state of the service to reflect which tasks it can process.

Parameters

NameTypeDescription
taskTypes[]stringA slice of strings, where each string represents a task type that the service should support.