Trigger Notification when the status on the change is moved

I am new to Agile PLM JavaClient and I am asked to write a PX to send the notification to users when a Change status is moved. I am not sure how can I do it. Can u please help and in details?

Add Comment
3 Answer(s)

Hi,
USually, it is possible to configure this behavior in the workflow directly.

Opening the Workflow from the java Cliend as Admin, you can go through the statuses of the WF and apply different Criteria Status.
In each criteria you can set:Notify Upon Entry for the interested status.
When the change statisfy that criteria and it is moved to that status, the users/usergroups selected will be notified by default (if not manual removed during change status dialog by the user).

If you need however a PX let me know

Agile Angel Answered on September 29, 2016.

Hello Antonio,

Thank you for the information.

I have been asked to write code On change type –  Deviation. In which, Originators and Approvers to be notified on Closed status.
Send notification 2 weeks prior to ‘Effective To’ date to Originator and Approver of upcoming Due date.

Could you please help me out in this?

on October 3, 2016.
Add Comment

Hello Antonio,

I need to configure with PX. Notification should be triggered to specific set of people when the WF Status is changed such as when someone approves/rejects, released or on hold etc.

Agile User Answered on September 29, 2016.
Add Comment

Shrivatsak,

you can still do exactly what were asked using Antonio’s suggestion.
Anyway, you can look for more info at Agile Product Lifecycle Management Administrator Guide

21.3.3 Invoking Notifications Programmatically

SDK and Scripting enables notifications to be sent out programmatically. A notification invocation uses the following parameters, whose use is explained:

  • SendNotification – the program module or method used to send out a notification.

  • Notification Name – the name of the notification.

  • Urgent – whether the notification is to be flagged as Urgent or not; the value can be True or False.

  • Addressee List – list of users who may be notified; this set of values is appended to the list of people listed in the “To” field of the notification. This list of Addressees is only picked up if $NOTIFY is assigned in the “To” field.

  • Comment – refers to the comment passed to the Comment data tag, if assigned in the notification template.

  • Object – an object of the type corresponding to that associated with the notification in its definition. For example, an ECO object must be passed to a notification tied to a notification associated with the ECO subclass (it can also be passed to a notification tied to the Change Orders class or Changes base class). This object is used to derive the values of variables used in the notification Subject, Body, and To fields.

For more information about sending notifications using Agile SDK, see Chapter 9, “Subscribing to Agile PLM Objects” in the Oracle Agile PLM SDK Developer’s Guide.

Carlos

Agile Angel Answered on September 29, 2016.
Add Comment

Your Answer

By posting your answer, you agree to the privacy policy and terms of service.