Knowledge Base
 

  

 

 

Knowledge Base
Previous  BackToCategory  Next  8 of 47
Process Incoming RosettaNet Mime Message

 

Summary
Requirements
Create a process
Inserting process variables into the process
Inserting a RosettaNet node
Inserting a File Input node
Inserting a Send Email node
Connect the nodes
Save the process
Run the process 

Summary

This article demonstrates how to process an incoming RosettaNet mime message within Enterprise Enabler (EE). 


Requirements

  1. Enterprise Enabler 2006 Server
  2. RosettaNet MIME message (input text file)
  3. Access to SMTP server for sending emails


Create a process

Open Enterprise Enabler and create a new process by clicking File » New » Process.




Inserting process variables into the process

In the Toolbox menu go to Proc. Variables, select Proc. Variable and drag it into the process designer area. Rename the Proc. Variable to fileName.

Set the initial value of the variable to C:\PIDXInvoice.txt.



Repeat the same process to create delivery, errors, fileContents, PartnerURL, payload, preamble, 

receipt, service, andsubject variables. Do not set any values to these variables. Finally, create sendTo variable with an appropriate initial value such as john.doe@mycompany.com.


Inserting a RosettaNet node

In the Toolbox menu go to Action Nodes, select RosettaNet2.0 node and drag

it into the process designer area.



The RosettaNet2.0 node's Properties window should look like this once all the validation DTDs and other parameters are set.



Click on the ellipsis of the VariableMappings property and map all the local variables with the process variables created before. Click the Done button to save and exit the VariableMappings window.




Inserting a FileInput node

In the Toolbox menu go to Receive Nodes, select File Input node and drag it into the process designer area. Click on the ellipsis for the VariableMappings property

in the Properties window and the following window appears.



Select inputFileName and click on the Edit button and the Select List Item dialog window opens.



Select fileName process variable and click on the Select button. Repeat the same process for fileContents by selectingfileContents process variable. Click the Done button to save and exit the VariableMappings window.


Inserting a Send Email node

In the Toolbox menu go to Send Nodes, select the Send Email node

and drag it into the process designer area. The Send Emailnode's Properties 

window should look like this once all the emailing parameters are set.



Click on the ellipsis of the VariableMappings property and map all the local

variables with the process variables created before. Click the Done button to save and exit the VariableMappings window.




Connect the nodes

In the designer window drag the arrow of the connector from the Start node

and drop it on the File Input node. Drag the arrow from the File Input node to the RosettaNet 2.0 node. Drag the arrow from the RosettaNet 2.0 node and drop it on the Send Emailnode. And finally, drag the arrow from the Send Email node and drop it on the Stop node. The completed process should look like the following figure:




Save the process

Click anywhere in the empty area on the designer window and rename the process in the Properties window.



To save the process click the Save button in the Standard toolbar.




Run the process

Click on the Start the Process button in the Process Designer toolbar to run the process.



Here is a snapshot of the output window after the process ran successfully:



If everything ran successfully, then email recipient should receive an

acknowledgement email, otherwise email recipient should receive some

kind of failure notification email.


Previous  BackToCategory  Next  8 of 47
Copyright © 2010 by Stone Bond Technologies | Phone: +1 (713) 622-8798   |  Privacy Statement   |  Terms of Use