New to Infor Process Designer? Where should you start?

Do you wish your flow was as simple as this? Obviously that wouldn't be very useful, but when you look at the Infor Process Designer it is easy to get lost on where to start. We normally would start with the Start node, but there's more to it than that.


Your canvas (the white space between the nodes) really is the starting point of your flow. Here you have the option to give your flow a title and to set some defaults that may be useful for your design.

Service Name: Is your flow triggered by a Service? Infor provides standard triggers based upon transaction events. You release a requisition, IPA creates a Workunit for processing the approvals. The function that moves your requisition into the approval flow is the Service.

Click the drop down arrow and the full listing of available Services is presented to you. Is this a requirement? No, but there is a benefit. By selecting a Service, the variables that are automatically passed into the Workunit are available to you within the flow.

That means you don't have to create and assign a Company variable if the Service already passes one into your Workunit. And since these are treated the same way as the variables you define on the Start node (more on that later), these Service Variables are available to you all the way through the flow.

If the Service is updated with additional variables (or they don't show at first after selecting the Service) you can click the Reload Service variables button to refresh them.

Not just answers, providing solutions

Let's Sort it Out (in JavaScript)

Issue:
We are converting payroll history into Lawson S3 via IPA and the order of the fields in each row don't line up with the sort order we need them to be in.

The first 6 fields are Record Type, Company, Employee, Process Level, Department and Check ID but they need to be sorted by Company, Employee, Check ID, Record Type, Process Level and Department.

Solution:
The quick method I used was to create the output data with the first 6 fields in the order I needed to sort them in and then used the JavaScript sort() function to sort the array.

That required me to then to read through the data output again, placing each field in it's correct import order.

Not just answers, providing solutions

Using Arrays for a Cross Reference Lookup

Issue:
You may have had to create a flow that needed to look up one value to find another value from a cross reference table. You know that performing this look up as you're looping through your records can really slow down the performance of  your flow.

For example, perhaps you need the full name of a US State and have a crosswalk of the State code and full name:

FL=Florida
GA=Georgia
TN=Tennessee
etc.

Solution:
You can query and assign your cross reference values to arrays at the beginning of your flow.

If it is a straight one to one cross reference then create two arrays, like StateCode and StateDescription can be defined on the Start node.

Variable Name = StateCode
Variable Type = Array
Variable Value = [] or new Array()

As you cycle through the cross reference values, assign StateCode[counter]=State Code and StateDescription[counter]=State Description.

StateCode[0]="FL"
StateDescription[0]="Florida"
StateCode[1]="GA"
StateDescription[1]="Georgia"
StateCode[2]="TN"
StateDescription[2]="Tennessee"

While your looping through your records and you come across the State Code, you can now find the State Description value to use.

i=StateCode.indexOf(stateCode)
if (i>=0) description=StateDescription[i]

Not just answers, providing solutions

ION Document Flow

A Document Flow moves the Business Object Document (BOD) from one application to another, like the Security User Master BOD from IFS to Landmark multi-Tenant, Landmark single-Tenant, Mongoose, Lawson LSF, etc.

Each of these applications had its own SUM BOD Document Flow created as the applications were rolled out, and after we implemented EAM we followed the same pattern and created a new Document Flow, this one with a Mapping included.

So, each application we were sending the SUM BOD to had their own separate Document Flow to process the BOD and so, we thought, the Mapping from one wouldn’t impact the others. That’s not what we discovered.

We started getting Error BODs because the Mapping we applied to the EAM Document Flow caused a problem with the other systems that couldn’t accept the change to the BOD. It was like the different Document Flows processed the BOD in a series and that’s what it looked like in One View when we reviewed the processing.

How then could we apply the Mapping for EAM without impacting the other applications? It sounds simple now, but we tried a few different things before we hit upon the answer. We needed to create one Document Flow for all of the applications together.

One Document Flow to move the BOD from IFS to all of the receiving applications, with the Mapping for EAM in a parallel stream within the Document Flow.

Not just answers, providing solutions

The DataIterator

I like the DataIterator, but it isn't always the best solution to use for iteration of data. To explain I will tell about a recent flow I needed to develop and the solution I came up with, part of which used the DI.

My client receives an item master file from GHX and they use it to update the Item Master (IC11) & Vendor Item (PO13) records, to update unreleased Requition line items (RQ10), and to update pending PO Interface line items (PO23).

We will update the description values, manufacture values, and vendor item number values for the items in the file. We are also updating the GL account on IC11 and the Purchasing Major and Minor Class values from another file.

The value joining the two files is the UNSPSC code value.

I used a File Access to load each file, and the first was a combination of line and tab separated values. Each item was separated by line but each data element of the item was separated by tab stops. It was recommended that I use a DataIterator to first parse the lines and then to parse the tab separated data elements (basically a nested pair of DI's).

If you're familiar with this, it works pretty much like a query to cycle through the data elements and I thought that was a bit clumsy. 

My solution? I used an Assign node - JavaScript Expression and treated the file's data like an array. It performed the exact same function, but was much faster. I first 'extracted' the data I needed and assigned it to a new variable (line and CSV data separated).

Remember, I had two files that I need to merge via UNSPSC codes before I could begin my updates in Lawson. One file had this value separated by the 4 parts while the other lumped them together. 

The 2nd file contained 49,023 lines of data and the thought of using the DataIterator to read through all of those records concerned me. I thought of the amount of time required and again decided to use the Assign - JavaScript Expression.

This process, reading through 49k lines, parsing and rewriting the output to a new variable took less than 4 minutes. That comes out to better than 200 lines of data per second. Remember, it had to iterate each record by line and then each line by its data element.

Now that I had two sets of records, ready to be merged (by UNSPSC value) I used another JavaScript Expression to compare, match and write the merged data into another new variable.

Then for each set of Lawson records to be updated I used a SQL query to retrieve my item records and wrote that to a new variable, which I then compared to the merged data to determine which had to be updated.

You guessed it, with an Assign - JavaScript Expression. So if the item description was different, or the vendor item, manufacturer info, etc. was different then I wrote which records required updating to a variable.

Now I had, for example, a list of items that needed updates done on IC11 in Lawson. That's where the DataIterator now came into play. I could iterate this final output by line and then create a transaction expression to use in an AGS update.

Using the DI at this point made sense since I needed to perform an update after each item record was parsed out. Within the DI loop was an Assign and a Lawson Transaction. 

My conclusion? If you need to perform a function while looping through the data, use a DataIterator. If not then using a JavaScript Expression is much more efficient.

Updating a DME string used by MS Add-Ins

If you create a DME (Query) in MS Add-Ins with a status field and want to convert the numeric value to the actual description, save your DME file and then open it in TextPad (or Notepad, etc.) and edit the .dme file to add ,xlt to the status field. Save it and when you open it within MS Add-Ins and run it, the results will come back with the status description.
DEVEL2B~PO~PORECEIVE~2~1~600~Created with Query Wizard 10.0.109~0~1~0~F
LWSN104~~COMPANY~2~~PO-NUMBER~0~~REC-NUMBER~2~~STATUS,xlt~2~
NEW~~0
Sheet1~A~1~TRUE~FALSE~FALSE
 Before:
CO         PO-NUMBER
STATUS
6000         60000000000301139         9
6000         60000000000300138         9
6000         60000000000274137         1
6000         60000000000275136         1
 
After:
COPO-NUMBER
 
600060000000000301139Archived / Closed
600060000000000300138Archived / Closed
600060000000000274137Released
600060000000000275136Released