Atomia Billing Server

Provisioning Renewal Subscription Scheduled Event Hanlder

6 views 0

Namespace: Atomia.Billing.Plugins.GenericWorkflowPlugin.ScheduledTasks.ProvisioningRenewalSubscriptionsScheduledEventHandler

Provisioning Renewal Subscription Scheduled Event Handler

It is a new schedule task which improves the performance of old ProvisioningRenewalExtendScheduleEventHandler. It is turned off by default because it works the same as ProvisioningRenewalExtendScheduleEventHandler. The schedule event handler processes renewal subscriptions only. You can define the list of statuses which can be processed by the task.

Keep in mind

If you want to turn it on, remove the renewal status from old ProvisioningRenewalExtendScheduleEventHandler to avoid scheduling the same subscriptions twice or turn off the old one and enable the Extend status in the configuration for the task.
You can execute this query to turn off Renewal status for ProvisioningRenewalExtendScheduleEventHandler:

UPDATE pc
SET value = 'Extend'
FROM plugin_configuration pc
INNER JOIN plugin p on pc.fk_plugin_id = p.id
WHERE p.name = 'ProvisioningRenewalExtendedScheduledEventHandler'
AND pc.[key] = 'SubscriptionStates';

Available Configuration properties:

Plugin ProvisioningRenewalExtendedScheduledEventHandler is disabled by default.

  • Auto-approve (AutoApprove) – It allows the tasks to be auto-approved on scheduling process.
  • Approved items count (ApprovedItemsCount) – Number of provisioning tasks to be auto-approved during one run. 0 means no limit.
  • Allowed statuses (SubscriptionStatuses) – Allowed statuses which will be processed.
  • Next processing offset for pending subscriptions (NextPendingSubscriptionProcessingOffset) – If a subscription is in the pending status and not provisioned, its next schedule will increase with the offset. 0 means the subscription will be scheduled in the next iteration.
  • Next processing offset for failed subscriptions (NextFailedSubscriptionProcessingOffset) – If a subscription failed, it’s next schedule will increase with the offset. 0 means the subscription will be scheduled in the next iteration.
  • Support email (SupportEmail) – If there are cancelled subscriptions, those will be sent to the support email or a reseller email if the support email is not defined.
  • Template name prefix (TemplatePrefix) – Transfer out notification template names are {templateName}Subject and {templateName}Body for emails.

 

Was this helpful?