Showing results for 
Search instead for 
Do you mean 
Reply
Solved! Go to solution

Getting alerts when an item is released

Hi guys,

 

A manager wants to get alerts when any item is released.

Is this possible?

 

Cem

11 REPLIES

Re: Getting alerts when an item is released

While you could add a Do task for the manager at the end of the workflow however, that leads to a lot of rubber-stamping. The simplest method would be to add a notify handler.

 

Best,

/Randy


Randy Ellsworth, Teamcenter Architect, Applied CAx, LLC
NX 11.0.1.mp01 | SW 2016 | TcUA 11.2.3
Evaluating:AW 3.2

Solution
Solution
Accepted by topic author CemAlpay
‎08-26-2015 04:32 AM

Re: Getting alerts when an item is released

You can use "CR-notify" handler on your release workflow

Re: Getting alerts when an item is released

Is CR-notify same with this handler?

There is no CR-notify here in the handlers list, only EPM-notify.

I tried but did not work. It marked (x) at the approval state.

Mail_internal_mail_activated preference is true.

 

Re: Getting alerts when an item is released

Please set following preferences, and restart the Teamcenter client.
Mail_server_name = <hostname>
Mail_server_port = 25
Mail_OSMail_activated = true
Mail_internal_mail_activated = true

 

Mail_server_name  

Sets the name of the mail gateway server. The server should be a machine running a
sendmail daemon.
This preference must be set to send system e-mail. The placeholder default setting
may return errors if the send command is used.


Also you can confirm by executing following OOTB utility in TC command prompt

tc_mail_smtp.exe

 

Re: Getting alerts when an item is released

Never done this before, so questions may be a bit basic, sorry for that.

I’m working on my test environment now. I have a guest TC corporate server on VMware.

Nothing else.

So can I use that guest corporate server to send mails?

If yes, what should be the server name?

Re: Getting alerts when an item is released

[ Edited ]

As mentioned earlier by sb6nju,

 

Mail_server_name = <hostname>
Mail_server_port = 25
Mail_OSMail_activated = true
Mail_internal_mail_activated = true

 

These preference value refers to machine where your email server is running. For example, it can be your corporate outlook server.

 

If your VM is registered in corporate network, you can use corp email-server to send mails. If not then you have to come up with test set-up. You can have word with your mail-server-team.

 

Alternatively you can use "notify" handler which sends TC mail (for your test env).

 

By the way which version of TC you are using? 

Solution
Solution
Accepted by topic author CemAlpay
‎08-26-2015 04:32 AM

Re: Getting alerts when an item is released

You need an SMTP server to send mails, else you are out of options.

Stefan Pendl, Systemmanager CAx, HAIDLMAIR GmbH
Production: NX10.0.3, VERICUT 8.0, FBM, MRL 3.1.4 | TcUA 10.1 MP7 Patch 0 (10.1.7.0) | TcVis 10.1
Development: VB.NET, Tcl/Tk    Testing: NX11.0 EAP, NX12.0 EAP

How to Get the Most from Your Signature in the Community
Solution
Solution
Accepted by topic author CemAlpay
‎08-26-2015 04:32 AM

Re: Getting alerts when an item is released

The email address must be filled in on the Person record (Organization) for this to work.

 

In Tc10.1 the workflow handlers were renamed:

  • EPM-notify (was notify) - sends internal email (inside teamcenter). Used on any type of task.
  • EPM-notify-report (was CR-notify) - sends external email (outside Teamcenter). Sends a report to all task reviewers. Used on the perform-signoff task (Start, Undo, Perform or Complete action depending on arguments).

 

Use EPM-notify with the "-attachment" argument to send internal mail which doesn't require having a smtp server.

 

External notifications depend on tc_mail_smtp working so get this to work before testing it in a workflow:

1. Identify your smtp email server (myserver).

2. Create a text file in C:\Temp called testme.txt with some simple text.

3. Open a Tc command window and run:

tc_mail_smtp -to=bill.nye@thescienceguy.com -subject=Test -server=myserver -body=C:\temp\testme.txt

 

Best,

/Randy


Randy Ellsworth, Teamcenter Architect, Applied CAx, LLC
NX 11.0.1.mp01 | SW 2016 | TcUA 11.2.3
Evaluating:AW 3.2

Re: Getting alerts when an item is released

Hi

I have a similar issue with a small release workflow where I have signoff and want a corresponding notification with the comments from the signoff.

WF_sign_notifyWF_sign_notify

Neither EPM-notify or EPM-notify-report sends out any mail (have followed PLM00037 Workflow Designer page 381 and also tried adding handlers in multiple places).

WF_sign_notify_handler1WF_sign_notify_handler1WF_sign_notify_handler2WF_sign_notify_handler2

Internal TC mail works with envelope from one user to another and external has been tested with TC command and works. Workflow initiater has external mail and preferences for Mail_OS... and Mail_internal... are both "true". I'm running the 11.2.3 VM with ArGoSoft mail server by M.Stulle.

I have no other clue why "notify" doesn't work other than something may be wrong with my workflow. So help is needed!

 

Br Peter