Continuing our previous posts, let us check the AllowedCustomProcessingStepType attribute in this blog post
Allowed Custom Processing Step Type attribute of custom API allows us to control whether other plugins can be registered or not against the custom message
- 0 – None – No custom processing steps are allowed.
- 1 – Async Only– Only Async processing steps are allowed.
- 2 – Both Async and Sync custom processing steps are allowed
Let us create a custom API with the value of “Allowed Custom Processing Step Type” as None.
If we check inside the Plugin Registration tool, we will not find the above message that we registered i.e. my_sampleAPI there.
Let us create another custom API and specify “Allowed Custom Processing Step Type” as Async Only.
As expected we can find the message available there.
As it is Async Only, if we try to register the step with Synchronous mode, we will get the below error.
Custom SdkMessageProcessingStep is not allowed on the specified message and entity.
As expected it allows us to register the step in asynchronous mode.
Get more details –
Hope it helps..