Jul 212006
One of the tricks to getting custom file names out of the HIPAA Accelerator is to add an extra component in the orchestration.
These are the steps I took to get a custom filename generated from the HIPAA_EDI adapter.
- Created a property schema with a element defined as a string and have it be a context property
- Create an schema with the delimiters that will be defined in the HIPAA_EDI send port with an element that repeats 30 times
- Create both a flat file send pipeline and receive pipeline using the schema defined in step 2
- Create a single element and associate this element with the element defined in step 1
- In the orchestration, sildenafil assign a variable a time
- From that assigned time do three things in a message assignment
- Assign the BHT_05 from the variable
- Assign a string variable the date as a string in HHMMSSDD format
- Assign the message with the context property created in the property schema
- Create a Correllation Type set to the context property
- Create a Correllation Set defined from Step 7
- Initialize the Correlation Set in the send shape
- Have a recieve shape using the message created in step 2 and have a following correlation set
- Assign the recieved message to a new message and assign the FILE.ReceivedFileName to whatever you want the filename to be
- Send the newly created message out
- Deploy
- Create a temporary folder that you assign the HIPAA_EDI adapter to write to
- Assign a recieve location to the the folder created in step 14
- Use the recieve pipeline created in step 3
- Create a send port using the pipeline created in step 3
- In the file name use %SourceFileName%
- Set the directory to the real directory where the HIPAA file is to be placed
- Bind the logical ports to their respective physical ports
-
free ebooks