How can i add mail notification action when auto update failed - install4j

I want to add failure mail notification when auto update failed case.
What is the right place to keep this action ?
please suggest.
Thanks

To react to a rollback in case of failure, add a "Run script" action to the "Startup" node of the updater and configure its "Optional Rollback Script" property with the desired action.

Related

Vendor Return Authorization Workflow Not Changing Approval Status (NetSuite)

Vendor Return authorization is not getting approved through workflow.
Approval status field is set to approved in the final state of my workflow but still the main status of the transaction shows PENDING APPROVAL and the blue colored APPROVE RETURN button appears.
Can anyone advise what is needed to be done to do automatic approval through workflow, below is the screenshot of my Workflow.
On the transition of workflow from "Pending Approval" state to "Approved" state we need to be sure that the transition to approved state happens on a click on a button i.e. Execute on button "Approve". Also, when you click on the transition arrow, you will see (1) condition and (2) "Transition on" options. Having wrong values there can stop the transition. For eg. for "transition on" if you have "After record submit, it will only work on record edit and if it's on entry then it will work when workflow enters new state and if nothing is selected like my screenshot then it will work for all events
Please see image for your reference
Use 'order status' in lieu of 'approval status'.
What status did you use for the rejected field?

How can we get an alert when Designer workflow is suspended or terminated

I need to create an alert(preferably configured mail) whenever my SharePoint designer workflow(2013) is suspended due to some error.
Thanks in advance.
Navigate to the Workflow History list in your site (it may be hidden from the Site Contents view, but you can always type in the URL directly <<yourbasesiteurl>>/lists/Workflow%20History/).
Create a view on this list filtered where the Status column is not equal to "In progress", and is not equal to "Completed"
Subscribe to alerts on this View

Is there any cancel operation method in install4j api using which one can exit the installation process?

I want to cancel the installation process programetically. Is there any method available in the install4j api for it??
As of install4j 6.0.4, there is no such method. The only way to cancel programmatically, is to add a "Run script" action with the "Script" property set to
return false;
and the "Failure strategy" property set to "Quit on failure. The action itself can have a "Condition expression" so you can determine elsewhere whether or not to cancel.

Sitecore Workflow __OnSave Command

I'm updating workflow process in Sitecore.
As shown in the screenshot, I added "__OnSave" command under Approval state. I guess it means when user saves the item in Approval state, the state will change to Draft state.
But, it is still in Approval state after saving.
What is the issue??
Actually __OnSave is a command, not an action. I'm not sure if Next State of this command is used at all. You need to click on the command button to execute the command, and __OnSave button is hidden by default.
What you need is another item under your __OnSave item using Auto Submit Action template with properties:
Type: Sitecore.Workflows.Simple.AutoSubmitAction,Sitecore.Kernel
Role: Your chosen role. This action will be executed only for the users which are in the role (e.g. sitecore\sitecore client authoring)
Next state: Workflows/Sample Workflow/Draft
Actions are executed automatically.

How to set agent status to 'Logged out' when unregister

Is there any way to change Agent status to something else when he unregister?
For reference
https://wiki.freeswitch.org/wiki/Mod_callcenter#status
You can do this on event. U have to write a process that will connect to freeswitch through ESL. There put a event handler for unregister event. based on that event you can change the status of any agent to anything you want