Skip to Main Content

Analytics Software

Announcement

For appeals, questions and feedback about Oracle Forums, please email oracle-forums-moderators_us@oracle.com. Technical questions should be asked in the appropriate category. Thank you!

FDMEE - User access to bactch and data load rule details

AlexZhSep 19 2019 — edited Sep 19 2019

Hello everyone,

We have the question regarding to access of current user to batches and data load rules details.

We have the following process:

- User executes the custom script

- This script calls the .bat file which in return call the batch in which we have defined two data load rules

- When the user execute the custom script, they can see the process details only related to the custom script, but not related to the batch file and data load rule

- Inside the .bat file we're calling RunBatch.bat file and for the parameters we provide different user id (custadmin/password/batch name)

- Since because the batch is executed by custadmin, I believe the user is not able to see the process details

Is there a way to allow end users (not admins) to see the batches and data load rules in Process Details Tab?

Also we're not sure how to get the user id and password on the fly rather the hardcoded user id while executing the custom script, even if I do so the user id and the password will be spooled in to log file, if I'm correct.

Comments

675595
Can you please try printing $inbound and see if the fields are properly populated.
If so then it might be some issue with XPath.
$inbound/ctx:transport/ctx:request/tp:headers/email:Subject/text()
$inbound/ctx:transport/ctx:request/tp:headers/email:Subject/*

Manoj
605614
Hi,
Thanks! Your suggestion gave me clues on what to do.

I "*Assign*"

concat('<?xml version="1.0"?>
<OracleSBMessage>
<MessageType>ApplicationEmailNotification</MessageType>
<MessageChannel>Email</MessageChannel>
<MessageSecurity>NONSSL</MessageSecurity>
<Email>
<Date>', $inbound/ctx:transport/ctx:request/tp:headers/email:Date/text(), '</Date>
<Subject>', $inbound/ctx:transport/ctx:request/tp:headers/email:Subject/text(), '</Subject>
<Importance>Normal</Importance>
<From>', $inbound/ctx:transport/ctx:request/tp:headers/email:From/text(), '</From>
<To>', $inbound/ctx:transport/ctx:request/tp:headers/email:To/text(), '</To>
<Cc>', $inbound/ctx:transport/ctx:request/tp:headers/email:Cc/text(), '</Cc>
<Body>', $body/text(), '</Body>
</Email>
</OracleSBMessage>')

"*to variable*" inboundXMLEmail

and then "*Log*" _$inboundXMLEmail_

the log file succesfully shows the current XML String as customized above.


I then created a "*Route*" which "*Route To*" a Business Service which implements a JMS endpoint address to send the message to Weblogic JMS Queue.

Upon checking the Weblogic JMS Queue, JMS Messages indeed went in. However, upon viewing the JMS Messages, the XML String created was not the body of the JMS Message, but instead the actual Microsoft Outlook HTML Format of the E-mail.

So I went back to the "*Route*", and inside the "*Request Actions*", I then "*Assign*"
<xmlns:Body>
{$inboundXMLEmail/OracleSBMessage/text()}
</xmlns:Body>

"*to variable*" body

using a user defined namespace of xmlns http://schemas.xmlsoap.org/soap/envelope/

However, upon running it, I received the following error:

####<Sep 7, 2009 11:10:06 AM SGT> <Error> <WliSbTransports> <EMCPC272> <ALSBAdminServer> <[ACTIVE] ExecuteThread: '6' for queue: 'weblogic.kernel.Default (self-tuning)'> <<anonymous>> <BEA1-00101B49A2EC1FDC02BF> <> <1252293006324> <BEA-381014> <Error occured for endpoint ProxyService TestProject/ProxyServices/EmailProxyService
com.bea.wli.sb.transports.TransportException: ALSB Assign action failed updating variable "body": com.bea.wli.common.xquery.XQueryException: Error parsing XML: {err}XP0006: "<?xml version="1.0"?>
<OracleSBMessage>
<MessageType>EmailNotification</MessageType>
<MessageChannel>Email</MessageChannel>
<MessageSecurity>NONSSL</MessageSecurity>
<Email>
<Date>Mon Sep 07 11:10:03 SGT 2009</Date>
<Subject>TestSubject</Subject>
<Importance>Normal</Importance>
<From>Henry Wu <henry@company.com></From>
<To>Henry Wu <henry@company.com></To>
<Cc></Cc>
<Body>TestBody</Body>
</Email>
</OracleSBMessage> ({http://www.w3.org/2001/XMLSchema}string)": bad value for type node
at com.bea.wli.sb.transports.TransportException.newInstance(TransportException.java:146)
at com.bea.wli.sb.transports.TransportManagerImpl.receiveMessage(TransportManagerImpl.java:276)
at com.bea.wli.sb.transports.email.EmailPublishedTask.process(EmailPublishedTask.java:118)
at com.bea.wli.sb.transports.poller.listener.PolledMessageListenerMDB.onMessage(PolledMessageListenerMDB.java:42)
at weblogic.ejb.container.internal.MDListener.execute(MDListener.java:429)
at weblogic.ejb.container.internal.MDListener.transactionalOnMessage(MDListener.java:335)
at weblogic.ejb.container.internal.MDListener.onMessage(MDListener.java:291)
at weblogic.jms.client.JMSSession.onMessage(JMSSession.java:4060)
at weblogic.jms.client.JMSSession.execute(JMSSession.java:3953)
at weblogic.jms.client.JMSSession$UseForRunnable.run(JMSSession.java:4467)
at weblogic.work.ServerWorkManagerImpl$WorkAdapterImpl.run(ServerWorkManagerImpl.java:518)
at weblogic.work.ExecuteThread.execute(ExecuteThread.java:209)
at weblogic.work.ExecuteThread.run(ExecuteThread.java:181)

Hope you can help in why replacing the contents of the variable $body would not work in this conditions.

Many Thanks,
Henry
605614
Hi,
Thanks. I solved this by not changing $body, but instead have the formed XML String inserted into the a user-defined property in the transport header, then essentially the JMS Message's user-defined properties will have this XML String.

Regards,
Henry
1 - 3