Interface IBusinessRuleClient
Namespace: System.Dynamic.ExpandoObject
Syntax
public interface IBusinessRuleClient
Methods
GetConfigurationAsync(CancellationToken)
Get the current business rule configuration
Declaration
Task<BusinessRuleConfiguration> GetConfigurationAsync(CancellationToken cancellationToken = default(CancellationToken))
Parameters
System.Threading.CancellationToken
cancellationToken
A cancellation token that can be used by other objects or threads to receive notice of cancellation. |
Returns
System.Threading.Tasks.Task<BusinessRuleConfiguration>
BusinessRuleConfiguration |
Exceptions
ApiException
A server side error occurred. |
PictureparkValidationException
Validation exception |
PictureparkForbiddenException
Forbidden |
PictureparkNotFoundException
Entity not found |
PictureparkConflictException
Version conflict |
PictureparkException
Internal server error |
RunScheduleAsync(BusinessRuleSchedule, CancellationToken)
Runs the supplied business rule schedule immediately.
Allows for testing of schedules.
Declaration
Task<BusinessProcess> RunScheduleAsync(BusinessRuleSchedule schedule, CancellationToken cancellationToken = default(CancellationToken))
Parameters
BusinessRuleSchedule
schedule
BusinessRuleSchedule |
System.Threading.CancellationToken
cancellationToken
A cancellation token that can be used by other objects or threads to receive notice of cancellation. |
Returns
System.Threading.Tasks.Task<BusinessProcess>
BusinessProcess of the metadata operation triggered by the schedule. |
Exceptions
ApiException
A server side error occurred. |
PictureparkValidationException
Validation exception |
PictureparkForbiddenException
Forbidden |
PictureparkNotFoundException
Entity not found |
PictureparkConflictException
Version conflict |
PictureparkException
Internal server error |
SearchTracesAsync(BusinessRuleTraceLogSearchRequest, CancellationToken)
Searches for trace logs produces by business rule execution.
Declaration
Task<BusinessRuleTraceLogSearchResult> SearchTracesAsync(BusinessRuleTraceLogSearchRequest request, CancellationToken cancellationToken = default(CancellationToken))
Parameters
BusinessRuleTraceLogSearchRequest
request
Request |
System.Threading.CancellationToken
cancellationToken
A cancellation token that can be used by other objects or threads to receive notice of cancellation. |
Returns
System.Threading.Tasks.Task<BusinessRuleTraceLogSearchResult>
Holds results of trace log search. |
Exceptions
ApiException
A server side error occurred. |
PictureparkValidationException
Validation exception |
PictureparkForbiddenException
Forbidden |
PictureparkNotFoundException
Entity not found |
PictureparkConflictException
Version conflict |
PictureparkException
Internal server error |
UpdateConfigurationAsync(BusinessRuleConfigurationUpdateRequest, CancellationToken)
Updates the business rule configuration.
Declaration
Task<BusinessProcess> UpdateConfigurationAsync(BusinessRuleConfigurationUpdateRequest request, CancellationToken cancellationToken = default(CancellationToken))
Parameters
BusinessRuleConfigurationUpdateRequest
request
Request containing the new configuration. |
System.Threading.CancellationToken
cancellationToken
A cancellation token that can be used by other objects or threads to receive notice of cancellation. |
Returns
System.Threading.Tasks.Task<BusinessProcess>
Business process |
Exceptions
ApiException
A server side error occurred. |
PictureparkValidationException
Validation exception |
PictureparkForbiddenException
Forbidden |
PictureparkNotFoundException
Entity not found |
PictureparkConflictException
Version conflict |
PictureparkException
Internal server error |