Frequent Contributor.
Frequent Contributor.
552 views

IDM 4.7 - Problem with sending emails from a workflow

Hello!

I created a simple workflow:


I want to send Emails from this workflow to the Requester and Approver. I constructured an ECMA string to extract 'EMail' attribute from Resource Owner person and wrote this string into the 'TO' field on the 'E-mail Notification' tab of the Activity step (see picture abowe).

Also I added a Log activity in my workflow (Activity4) to check that my ECMA string works properly. And it works good - when I start the workflow I see (in Comment section) that 'EMail' is extracted correctly. But when the workflow is on the Activity step, it looks like that ECMA string isn't executed at all... Therefore, no emails are sent.

These are the settings for Activity4, Activity5 and Activity steps:
1. Activity4:

2. Activity5:

3. Activity:


And that's what I see in the catalina.out log file when I start the workflow:
2018-08-13 17:34:44,490 INFO  [com.novell.soa.af.impl.LogEvent] (RBPM pool-1-workflow engine-ND-thread-3) [RBPM] [Workflow_Forwarded] Инициировано System, ID процесса: cacba11d84d84be08bbd886fffecc6f6, имя процесса: cn=FolderAccess,cn=RequestDefs,cn=AppConfig,cn=User Application Driver,cn=Driver Set,o=system:43, действие: Activity3, получатель: cn=BugulmeshovRV,ou=Support,ou=Test,ou=IT,ou=TEST,ou=users,o=data
2018-08-13 17:34:44,491 DEBUG [com.novell.soa.af.impl.core.DataItemEvaluator] (RBPM pool-1-workflow engine-ND-thread-3) [RBPM] evaluating to string: '{Enter author name here}'
2018-08-13 17:34:44,491 DEBUG [com.novell.soa.af.impl.core.DataItemEvaluator] (RBPM pool-1-workflow engine-ND-thread-3) [RBPM] result: {Enter author name here}
2018-08-13 17:34:44,491 DEBUG [com.novell.soa.af.impl.core.DataItemEvaluator] (RBPM pool-1-workflow engine-ND-thread-3) [RBPM] evaluating to string: '{Enter log message here}'
2018-08-13 17:34:44,491 DEBUG [com.novell.soa.af.impl.core.DataItemEvaluator] (RBPM pool-1-workflow engine-ND-thread-3) [RBPM] result: {Enter log message here}
2018-08-13 17:34:44,491 INFO [com.novell.soa.af.impl.activity.LogActivity] (RBPM pool-1-workflow engine-ND-thread-3) [RBPM] [User_Message] Инициировано cn=uaadmin,ou=sa,o=data, ID процесса: cacba11d84d84be08bbd886fffecc6f6, имя процесса: cn=FolderAccess,cn=RequestDefs,cn=AppConfig,cn=User Application Driver,cn=Driver Set,o=system:43, действие: Activity4, получатель: cn=BugulmeshovRV,ou=Support,ou=Test,ou=IT,ou=TEST,ou=users,o=data, автор: {Enter author name here}, сообщение: {Enter log message here}
2018-08-13 17:34:44,491 DEBUG [com.novell.soa.af.impl.core.DataItemEvaluator] (RBPM pool-1-workflow engine-ND-thread-3) [RBPM] evaluating to string: 'Initiator: ' + IDVault.get(NrfResourceRequest.getRequester(), 'user', 'FirstName') + '\n' + 'Owner: ' + IDVault.get(IDVault.get(flowdata.get('nrfResourceRequest/DN'), 'nrfResourceRequest', 'nrfSourceDN'), 'Resource', 'Owner') + '\nEmail: ' + IDVault.get(IDVault.get(IDVault.get(flowdata.get('nrfResourceRequest/DN'), 'nrfResourceRequest', 'nrfSourceDN'), 'Resource', 'Owner'), 'user', 'Email')
2018-08-13 17:34:44,501 DEBUG [com.novell.soa.af.impl.core.DataItemEvaluator] (RBPM pool-1-workflow engine-ND-thread-3) [RBPM] result: Initiator: Rasul
Owner: cn=ZelenogradovIK,ou=Superv,ou=Test,ou=IT,ou=TEST,ou=users,o=data
Email: test_idm@mycorp.ru
2018-08-13 17:34:44,504 INFO [com.novell.soa.af.impl.LogEvent] (RBPM pool-1-workflow engine-ND-thread-3) [RBPM] [Workflow_Forwarded] Инициировано System, ID процесса: cacba11d84d84be08bbd886fffecc6f6, имя процесса: cn=FolderAccess,cn=RequestDefs,cn=AppConfig,cn=User Application Driver,cn=Driver Set,o=system:43, действие: Activity4, получатель: cn=BugulmeshovRV,ou=Support,ou=Test,ou=IT,ou=TEST,ou=users,o=data
2018-08-13 17:34:44,505 DEBUG [com.novell.soa.af.impl.core.DataItemEvaluator] (RBPM pool-1-workflow engine-ND-thread-3) [RBPM] evaluating to string: 'IDMProv/approvalForm.do?weId=cacba11d84d84be08bbd886fffecc6f6&aqua=true&jsa=%7B%22approve%22%3A%22submitThenOpener%28%27approve%27%2C+3000%29%22%2C%22deny%22%3A%22submitThenOpener%28%27deny%27%2C+3000%29%22%2C%22refuse%22%3A%22submitThenOpener%28%27refuse%27%2C+3000%29%22%2C%22cancel%22%3A%22window.close%28%29%22%2C%22claim%22%3A%22submitOnlyAction%28%27claim%27%29%22%2C%22update%22%3A%22submitThenOpener%28%27update%27%2C+3000%29%22%2C%22comments%22%3A%22window.close%28%29%22%7D&rro=false'
2018-08-13 17:34:44,505 DEBUG [com.novell.soa.af.impl.core.DataItemEvaluator] (RBPM pool-1-workflow engine-ND-thread-3) [RBPM] result: IDMProv/approvalForm.do?weId=cacba11d84d84be08bbd886fffecc6f6&aqua=true&jsa=%7B%22approve%22%3A%22submitThenOpener%28%27approve%27%2C+3000%29%22%2C%22deny%22%3A%22submitThenOpener%28%27deny%27%2C+3000%29%22%2C%22refuse%22%3A%22submitThenOpener%28%27refuse%27%2C+3000%29%22%2C%22cancel%22%3A%22window.close%28%29%22%2C%22claim%22%3A%22submitOnlyAction%28%27claim%27%29%22%2C%22update%22%3A%22submitThenOpener%28%27update%27%2C+3000%29%22%2C%22comments%22%3A%22window.close%28%29%22%7D&rro=false
2018-08-13 17:34:44,505 DEBUG [com.novell.soa.af.impl.core.DataItemEvaluator] (RBPM pool-1-workflow engine-ND-thread-3) [RBPM] evaluating to string: process.getRequestId()
2018-08-13 17:34:44,505 DEBUG [com.novell.soa.af.impl.core.DataItemEvaluator] (RBPM pool-1-workflow engine-ND-thread-3) [RBPM] result: cacba11d84d84be08bbd886fffecc6f6
2018-08-13 17:34:44,506 DEBUG [com.novell.soa.af.impl.core.DataItemEvaluator] (RBPM pool-1-workflow engine-ND-thread-3) [RBPM] evaluating to string: process.getName(java.util.Locale.getDefault()) + ' (manager: ' + IDVault.get(IDVault.get(IDVault.get(flowdata.get('nrfResourceRequest/DN'), 'nrfResourceRequest', 'nrfSourceDN'), 'Resource', 'Owner'), 'user', 'FullName') + ')\n'
2018-08-13 17:34:44,510 DEBUG [com.novell.soa.af.impl.core.DataItemEvaluator] (RBPM pool-1-workflow engine-ND-thread-3) [RBPM] result: Test Resource Access (manager: Zelenogradov Ian Helmurodovich)

2018-08-13 17:34:44,510 DEBUG [com.novell.soa.af.impl.core.DataItemEvaluator] (RBPM pool-1-workflow engine-ND-thread-3) [RBPM] evaluating to string: NrfResourceRequest.getTargetDNDisplayName()
2018-08-13 17:34:44,512 DEBUG [com.novell.soa.af.impl.core.DataItemEvaluator] (RBPM pool-1-workflow engine-ND-thread-3) [RBPM] result: Rasul Bugulmeshov
2018-08-13 17:34:44,512 DEBUG [com.novell.soa.af.impl.core.DataItemEvaluator] (RBPM pool-1-workflow engine-ND-thread-3) [RBPM] evaluating to string: 'idmdash/#/tasks'
2018-08-13 17:34:44,512 DEBUG [com.novell.soa.af.impl.core.DataItemEvaluator] (RBPM pool-1-workflow engine-ND-thread-3) [RBPM] result: idmdash/#/tasks
2018-08-13 17:34:44,512 DEBUG [com.novell.soa.af.impl.core.DataItemEvaluator] (RBPM pool-1-workflow engine-ND-thread-3) [RBPM] evaluating to string: 'cn=Resource Request Notification_RU_NEW,cn=Default Notification Collection,cn=security'
2018-08-13 17:34:44,512 DEBUG [com.novell.soa.af.impl.core.DataItemEvaluator] (RBPM pool-1-workflow engine-ND-thread-3) [RBPM] result: cn=Resource Request Notification_RU_NEW,cn=Default Notification Collection,cn=security
2018-08-13 17:34:44,512 DEBUG [com.novell.soa.af.impl.core.DataItemEvaluator] (RBPM pool-1-workflow engine-ND-thread-3) [RBPM] IDVault.get(IDVault.get(IDVault.get(flowdata.get('nrfResourceRequest/DN'), 'nrfResourceRequest', 'nrfSourceDN'), 'Resource', 'Owner'), 'user', 'Email')
2018-08-13 17:34:44,516 DEBUG [com.novell.soa.af.impl.core.DataItemEvaluator] (RBPM pool-1-workflow engine-ND-thread-3) [RBPM] evaluating to string: IDVault.get(NrfResourceRequest.getRequester(), 'user', 'FirstName') + ' ' + IDVault.get(NrfResourceRequest.getRequester(), 'user', 'LastName')
2018-08-13 17:34:44,519 DEBUG [com.novell.soa.af.impl.core.DataItemEvaluator] (RBPM pool-1-workflow engine-ND-thread-3) [RBPM] result: Rasul Bugulmeshov
2018-08-13 17:34:44,526 INFO [com.novell.soa.af.impl.LogEvent] (RBPM pool-1-workflow engine-ND-thread-3) [RBPM] [Workflow_Forwarded] Инициировано System, ID процесса: cacba11d84d84be08bbd886fffecc6f6, имя процесса: cn=FolderAccess,cn=RequestDefs,cn=AppConfig,cn=User Application Driver,cn=Driver Set,o=system:43, действие: Activity5, получатель: cn=BugulmeshovRV,ou=Support,ou=Test,ou=IT,ou=TEST,ou=users,o=data
2018-08-13 17:34:44,527 DEBUG [com.novell.soa.af.impl.core.DataItemEvaluator] (RBPM pool-1-workflow engine-ND-thread-3) [RBPM] IDVault.get(IDVault.get(flowdata.get('nrfResourceRequest/DN'), 'nrfResourceRequest', 'nrfSourceDN'), 'Resource', 'Owner')
2018-08-13 17:34:44,543 DEBUG [com.novell.soa.af.impl.core.DataItemEvaluator] (RBPM pool-1-workflow engine-ND-thread-3) [RBPM] evaluating to string: 'IDMProv/approvalForm.do?weId=4f2fabdf69bd434b8622264f9a8bd4c1&aqua=true&jsa=%7B%22approve%22%3A%22submitThenOpener%28%27approve%27%2C+3000%29%22%2C%22deny%22%3A%22submitThenOpener%28%27deny%27%2C+3000%29%22%2C%22refuse%22%3A%22submitThenOpener%28%27refuse%27%2C+3000%29%22%2C%22cancel%22%3A%22window.close%28%29%22%2C%22claim%22%3A%22submitOnlyAction%28%27claim%27%29%22%2C%22update%22%3A%22submitThenOpener%28%27update%27%2C+3000%29%22%2C%22comments%22%3A%22window.close%28%29%22%7D&rro=false'
2018-08-13 17:34:44,544 DEBUG [com.novell.soa.af.impl.core.DataItemEvaluator] (RBPM pool-1-workflow engine-ND-thread-3) [RBPM] result: IDMProv/approvalForm.do?weId=4f2fabdf69bd434b8622264f9a8bd4c1&aqua=true&jsa=%7B%22approve%22%3A%22submitThenOpener%28%27approve%27%2C+3000%29%22%2C%22deny%22%3A%22submitThenOpener%28%27deny%27%2C+3000%29%22%2C%22refuse%22%3A%22submitThenOpener%28%27refuse%27%2C+3000%29%22%2C%22cancel%22%3A%22window.close%28%29%22%2C%22claim%22%3A%22submitOnlyAction%28%27claim%27%29%22%2C%22update%22%3A%22submitThenOpener%28%27update%27%2C+3000%29%22%2C%22comments%22%3A%22window.close%28%29%22%7D&rro=false
2018-08-13 17:34:44,544 DEBUG [com.novell.soa.af.impl.core.DataItemEvaluator] (RBPM pool-1-workflow engine-ND-thread-3) [RBPM] evaluating to string: process.getRequestId()
2018-08-13 17:34:44,544 DEBUG [com.novell.soa.af.impl.core.DataItemEvaluator] (RBPM pool-1-workflow engine-ND-thread-3) [RBPM] result: cacba11d84d84be08bbd886fffecc6f6
2018-08-13 17:34:44,544 DEBUG [com.novell.soa.af.impl.core.DataItemEvaluator] (RBPM pool-1-workflow engine-ND-thread-3) [RBPM] evaluating to string: process.getName(java.util.Locale.getDefault()) + ' (manager: ' + IDVault.get(IDVault.get(IDVault.get(flowdata.get('nrfResourceRequest/DN'), 'nrfResourceRequest', 'nrfSourceDN'), 'Resource', 'Owner'), 'user', 'FullName') + ')\n'
2018-08-13 17:34:44,548 DEBUG [com.novell.soa.af.impl.core.DataItemEvaluator] (RBPM pool-1-workflow engine-ND-thread-3) [RBPM] result: Test Resource Access (manager: Zelenogradov Ian Helmurodovich)

2018-08-13 17:34:44,548 DEBUG [com.novell.soa.af.impl.core.DataItemEvaluator] (RBPM pool-1-workflow engine-ND-thread-3) [RBPM] evaluating to string: NrfResourceRequest.getTargetDNDisplayName()
2018-08-13 17:34:44,549 DEBUG [com.novell.soa.af.impl.core.DataItemEvaluator] (RBPM pool-1-workflow engine-ND-thread-3) [RBPM] result: Rasul Bugulmeshov
2018-08-13 17:34:44,549 DEBUG [com.novell.soa.af.impl.core.DataItemEvaluator] (RBPM pool-1-workflow engine-ND-thread-3) [RBPM] evaluating to string: 'idmdash/#/tasks'
2018-08-13 17:34:44,549 DEBUG [com.novell.soa.af.impl.core.DataItemEvaluator] (RBPM pool-1-workflow engine-ND-thread-3) [RBPM] result: idmdash/#/tasks
2018-08-13 17:34:44,549 DEBUG [com.novell.soa.af.impl.core.DataItemEvaluator] (RBPM pool-1-workflow engine-ND-thread-3) [RBPM] evaluating to string: 'cn=Resource Request Notification_RU_NEW,cn=Default Notification Collection,cn=security'
2018-08-13 17:34:44,549 DEBUG [com.novell.soa.af.impl.core.DataItemEvaluator] (RBPM pool-1-workflow engine-ND-thread-3) [RBPM] result: cn=Resource Request Notification_RU_NEW,cn=Default Notification Collection,cn=security
2018-08-13 17:34:44,549 DEBUG [com.novell.soa.af.impl.core.DataItemEvaluator] (RBPM pool-1-workflow engine-ND-thread-3) [RBPM] IDVault.get(IDVault.get(IDVault.get(flowdata.get('nrfResourceRequest/DN'), 'nrfResourceRequest', 'nrfSourceDN'), 'Resource', 'Owner'), 'user', 'Email')
2018-08-13 17:34:44,553 DEBUG [com.novell.soa.af.impl.core.DataItemEvaluator] (RBPM pool-1-workflow engine-ND-thread-3) [RBPM] IDVault.get(IDVault.get(flowdata.get('nrfResourceRequest/DN'), 'nrfResourceRequest', 'nrfSourceDN'), 'Resource', 'Owner')
2018-08-13 17:34:44,555 DEBUG [com.novell.soa.af.impl.core.DataItemEvaluator] (RBPM pool-1-workflow engine-ND-thread-3) [RBPM] evaluating to string: IDVault.get(NrfResourceRequest.getRequester(), 'user', 'FirstName') + ' ' + IDVault.get(NrfResourceRequest.getRequester(), 'user', 'LastName')
2018-08-13 17:34:44,558 DEBUG [com.novell.soa.af.impl.core.DataItemEvaluator] (RBPM pool-1-workflow engine-ND-thread-3) [RBPM] result: Rasul Bugulmeshov


I paste here only three steps: Activity4, Activity5 and Activity. And as you can see here I use the following string to extract 'EMail' attribute:
IDVault.get(IDVault.get(IDVault.get(flowdata.get('nrfResourceRequest/DN'), 'nrfResourceRequest', 'nrfSourceDN'), 'Resource', 'Owner'), 'user', 'Email')

This string works corretly on Activity4 step and returns: test_idm@mycorp.ru
But it returns nothing on Activity5 and Activity steps.

Also I tried to do the following things:
1. Add a separate E-Mail activity in my workflow and use the same ECMA string in it. Result is the same - it cannot extract value for the 'TO' field.
2. Use a 'TO_DN' field (in addition to the 'TO' field) with the following string: IDVault.get(IDVault.get(flowdata.get('nrfResourceRequest/DN'), 'nrfResourceRequest', 'nrfSourceDN'), 'Resource', 'Owner') - this string also works properly (I checked it in my Log activity too). Result - no values are extracted for the 'TO' and 'TO_DN' fields.
3. Enter 'test_idm@mycorp.ru' as a simple string into the 'TO' field. And even in this case there is no email sending...

It looks like that "email fields" ('TO', 'CC', 'TO_DN', etc.) aren't working in my case. I don't know why.

As for SMTP server settings and Email templates:
1. I did SMTP server settings in iManager and also checked it by using configupdate.sh utility - looks OK in both cases.
2. Email templates also look good and are depoyed in the eDirectory

P.S. In general, workflow works good: When some user is requesting a resource, the request is sent to the Approver and he can see this request in his 'Tasks' section of UA portal. He can successfully Accept or Reject it too. The only problem is that emails are not sent during the workflow.
Labels (1)
0 Likes
1 Reply
Highlighted
Absent Member.
Absent Member.

Re: IDM 4.7 - Problem with sending emails from a workflow

EKantyshev,

It appears that in the past few days you have not received a response to your
posting. That concerns us, and has triggered this automated reply.

These forums are peer-to-peer, best effort, volunteer run and that if your issue
is urgent or not getting a response, you might try one of the following options:

- Visit https://www.microfocus.com/support-and-services and search the knowledgebase and/or check
all the other self support options and support programs available.
- Open a service request: https://www.microfocus.com/support
- You could also try posting your message again. Make sure it is posted in the
correct newsgroup. (http://forums.microfocus.com)
- You might consider hiring a local partner to assist you.
https://www.partnernetprogram.com/partnerfinder/find.html

Be sure to read the forum FAQ about what to expect in the way of responses:
http://forums.microfocus.com/faq.php

Sometimes this automatic posting will alert someone that can respond.

If this is a reply to a duplicate posting or otherwise posted in error, please
ignore and accept our apologies and rest assured we will issue a stern reprimand
to our posting bot.

Good luck!

Your Micro Focus Forums Team
http://forums.microfocus.com



0 Likes
The opinions expressed above are the personal opinions of the authors, not of Micro Focus. By using this site, you accept the Terms of Use and Rules of Participation. Certain versions of content ("Material") accessible here may contain branding from Hewlett-Packard Company (now HP Inc.) and Hewlett Packard Enterprise Company. As of September 1, 2017, the Material is now offered by Micro Focus, a separately owned and operated company. Any reference to the HP and Hewlett Packard Enterprise/HPE marks is historical in nature, and the HP and Hewlett Packard Enterprise/HPE marks are the property of their respective owners.