Freigeben über


WorkflowTaskAsyncClient Class

  • java.lang.Object
    • com.azure.analytics.purview.workflow.WorkflowTaskAsyncClient

public final class WorkflowTaskAsyncClient

Initializes a new instance of the asynchronous PurviewWorkflowClient type.

Methods inherited from java.lang.Object

Method Details

getWithResponse

public Mono<Response<BinaryData>> getWithResponse(String taskId, RequestOptions requestOptions)

Get a workflow task.

Response Body Schema

{
     id: String (Required)
     title: String (Optional)
     workflowRunId: String (Required)
     workflowId: String (Required)
     requestor: String (Required)
     createdTime: OffsetDateTime (Required)
     lastUpdateTime: OffsetDateTime (Required)
     payload (Required): {
         type: String(CreateTerm/UpdateTerm/DeleteTerm/ImportTerms/UpdateAsset/GrantDataAccess) (Required)
         targetValue: String (Required)
         payload: Object (Optional)
     }
     reminderInfo (Optional): {
         lastRemindTime: OffsetDateTime (Optional)
         nextRemindTime: OffsetDateTime (Required)
         reminderSettings: Object (Required)
     }
     expiryInfo (Optional): {
         lastExpiryNotificationTime: OffsetDateTime (Optional)
         nextExpiryNotificationTime: OffsetDateTime (Required)
         expiryTime: OffsetDateTime (Required)
         expirySettings (Required): {
             expireAfter: Object (Required)
             notifyOnExpiration (Optional): [
                 String (Optional)
             ]
         }
     }
 }

Parameters:

taskId - The task id.
requestOptions - The options to configure the HTTP request before HTTP client sends it.

Returns:

a workflow task along with Response<T> on successful completion of Mono.

reassignWithResponse

public Mono<Response<Void>> reassignWithResponse(String taskId, BinaryData reassignCommand, RequestOptions requestOptions)

Reassign a workflow task.

Request Body Schema

{
     reassignments (Optional): [
          (Optional){
             reassignFrom: String (Required)
             reassignTo: String (Required)
         }
     ]
 }

Parameters:

taskId - The task id.
reassignCommand - The request body of reassigning a workflow task.
requestOptions - The options to configure the HTTP request before HTTP client sends it.

Returns:

the Response<T> on successful completion of Mono.

Applies to