ion integration with solidworks: managing items and …schd.ws/hosted_files/discover2016/75/523 -...

64
ION Integration with SolidWorks: Managing Items and BOMs Nick Stoltzfus Senior Consultant Guide Technologies, LLC. 1

Upload: truongkien

Post on 28-Apr-2018

240 views

Category:

Documents


5 download

TRANSCRIPT

Page 1: ION Integration with SolidWorks: Managing Items and …schd.ws/hosted_files/discover2016/75/523 - Infor ION integration... · ION Integration with SolidWorks: Managing Items and BOMs

ION Integration with SolidWorks: Managing Items and BOMs Nick Stoltzfus

Senior Consultant

Guide Technologies, LLC.

1

Page 2: ION Integration with SolidWorks: Managing Items and …schd.ws/hosted_files/discover2016/75/523 - Infor ION integration... · ION Integration with SolidWorks: Managing Items and BOMs

Project Objectives

• Integrate Solidworks PDM Bills of Materials with XA EPDM using ION

2

Page 3: ION Integration with SolidWorks: Managing Items and …schd.ws/hosted_files/discover2016/75/523 - Infor ION integration... · ION Integration with SolidWorks: Managing Items and BOMs

Project Objectives

• Solidworks becomes the system of record for Bills of Materials

3

Page 4: ION Integration with SolidWorks: Managing Items and …schd.ws/hosted_files/discover2016/75/523 - Infor ION integration... · ION Integration with SolidWorks: Managing Items and BOMs

Project Objectives

• Minimize/Eliminate the need for manual data entry.

4

Page 5: ION Integration with SolidWorks: Managing Items and …schd.ws/hosted_files/discover2016/75/523 - Infor ION integration... · ION Integration with SolidWorks: Managing Items and BOMs

Project Objectives

• Notify users in case of exceptions

5

Page 6: ION Integration with SolidWorks: Managing Items and …schd.ws/hosted_files/discover2016/75/523 - Infor ION integration... · ION Integration with SolidWorks: Managing Items and BOMs

Challenges to Overcome • Replacing tribal knowledge of a data-entry person with an automated

system

6

Page 7: ION Integration with SolidWorks: Managing Items and …schd.ws/hosted_files/discover2016/75/523 - Infor ION integration... · ION Integration with SolidWorks: Managing Items and BOMs

Challenges to Overcome • Transforming Solidworks XML format to XA System Link

7

Page 8: ION Integration with SolidWorks: Managing Items and …schd.ws/hosted_files/discover2016/75/523 - Infor ION integration... · ION Integration with SolidWorks: Managing Items and BOMs

Challenges to Overcome • Data Integrity in Solidworks

8

Page 9: ION Integration with SolidWorks: Managing Items and …schd.ws/hosted_files/discover2016/75/523 - Infor ION integration... · ION Integration with SolidWorks: Managing Items and BOMs

Infor ION

Business Vault Analytics | Reporting | Search | In-context BI

ERP WHM

Motion Cloud

IDM

Common experience

Common workspace

Common analytics

Common reporting

Common workflow

Common event management

Common localizations

Common mobility

Common packaged integration

Content Management

Page 10: ION Integration with SolidWorks: Managing Items and …schd.ws/hosted_files/discover2016/75/523 - Infor ION integration... · ION Integration with SolidWorks: Managing Items and BOMs

Infor ION Intuitive, browser-based interface used to easily model

and manage all Infor ION services. ION DESK

ION SERVICE Connecting Infor and non-Infor applications across multiple platforms.

Event Management, Workflow and Pulse engines.

ION WORKFLOW

Automated Task Routing and Approvals

Through Workflow

ION ACTIVITY DECK

View and Handle Tasks, Alerts, and

Notifications. View Workflow Status

Diagram and Follow Application Documents.

ION EVENT MANAGEMENT

Business Task Completion Monitoring and Proactive Alerting

of Exceptions.

ION CONNECT

Communication and Secure Sharing of Data Across On-Premise and

Cloud Applications.

ION PULSE

Distribution of Tasks, Alerts, and

Notifications. Enable Prioritization,

Escalations and Work Management.

Page 11: ION Integration with SolidWorks: Managing Items and …schd.ws/hosted_files/discover2016/75/523 - Infor ION integration... · ION Integration with SolidWorks: Managing Items and BOMs

ION Connectors

INFOR LEGACY Apps / 3

rd Party APPS or

MIDDLEWARE

BUSINESS

ADAPTERS

INFOR STANDARD

INFOR CLOUDSUITE

EAM XM

MOTION SYTELINE

DB CONNECTOR

FILE CONNECTOR

WEB SERVICES CONNECTOR

JMS (e.g. IBM, Tibco, Webmethods, etc.)

INFOR I/O Box CONNECTOR

MS CRM DYNAMICS

SALESFORCE.COM

SAP

EDI CONNECTOR

ORACLE EBS

Page 12: ION Integration with SolidWorks: Managing Items and …schd.ws/hosted_files/discover2016/75/523 - Infor ION integration... · ION Integration with SolidWorks: Managing Items and BOMs

ION Process

Translate into XML

Interpret from XML

BOD

Connection Point Solidworks

Connection Point XA

ION Connector

Page 13: ION Integration with SolidWorks: Managing Items and …schd.ws/hosted_files/discover2016/75/523 - Infor ION integration... · ION Integration with SolidWorks: Managing Items and BOMs

Solution

• Easy as 1, 2, 3... 4

13

1. Get the XML File from Solidworks

2. Make sure all the items exist in XA

3. Transform the Solidworks XML to a BillOfMaterials BOD

4. Submit the BillOfMaterials BOD to XA

Page 14: ION Integration with SolidWorks: Managing Items and …schd.ws/hosted_files/discover2016/75/523 - Infor ION integration... · ION Integration with SolidWorks: Managing Items and BOMs

Step 1

14

Page 15: ION Integration with SolidWorks: Managing Items and …schd.ws/hosted_files/discover2016/75/523 - Infor ION integration... · ION Integration with SolidWorks: Managing Items and BOMs

Step 1 • BOM maintenance is done in

Solidworks, prompting an XML document to be created in a shared folder.

• How does this happen???

• Don’t know. Don’t care.

15

Page 16: ION Integration with SolidWorks: Managing Items and …schd.ws/hosted_files/discover2016/75/523 - Infor ION integration... · ION Integration with SolidWorks: Managing Items and BOMs

Step 1

• Create an ION file connectionpoint

16

Page 17: ION Integration with SolidWorks: Managing Items and …schd.ws/hosted_files/discover2016/75/523 - Infor ION integration... · ION Integration with SolidWorks: Managing Items and BOMs

Step 1

• Specify the location on the network where ION can find the file

17

Page 18: ION Integration with SolidWorks: Managing Items and …schd.ws/hosted_files/discover2016/75/523 - Infor ION integration... · ION Integration with SolidWorks: Managing Items and BOMs

Step 1

• Specify the folder location of where the file can be found and where it should be placed when it’s done being processed

18

Page 19: ION Integration with SolidWorks: Managing Items and …schd.ws/hosted_files/discover2016/75/523 - Infor ION integration... · ION Integration with SolidWorks: Managing Items and BOMs

Step 1

• ION will poll that folder periodically and pick files that are there based on your specified naming pattern.

19

Page 20: ION Integration with SolidWorks: Managing Items and …schd.ws/hosted_files/discover2016/75/523 - Infor ION integration... · ION Integration with SolidWorks: Managing Items and BOMs

Step 2

20

Page 21: ION Integration with SolidWorks: Managing Items and …schd.ws/hosted_files/discover2016/75/523 - Infor ION integration... · ION Integration with SolidWorks: Managing Items and BOMs

Step 2

• Before we can create a bill of material, we need to make sure that all of the items in the BOM are in XA and eligible for a BOM

• How can we do that from ION?

• An ION Intermediate Database connection to the IBM i

21

Page 22: ION Integration with SolidWorks: Managing Items and …schd.ws/hosted_files/discover2016/75/523 - Infor ION integration... · ION Integration with SolidWorks: Managing Items and BOMs

Step 2

• Create a connection point of type Database

22

Page 23: ION Integration with SolidWorks: Managing Items and …schd.ws/hosted_files/discover2016/75/523 - Infor ION integration... · ION Integration with SolidWorks: Managing Items and BOMs

Step 2

• Define the connection point information

23

IP Address or Host Name of

IBM i

Library list for stored procedure

call

Page 24: ION Integration with SolidWorks: Managing Items and …schd.ws/hosted_files/discover2016/75/523 - Infor ION integration... · ION Integration with SolidWorks: Managing Items and BOMs

Step 2

• Define the connection point information

24

Call to IBM i Stored Procedure

Document to be received from database

connection

Document to be sent from database

connection

Page 25: ION Integration with SolidWorks: Managing Items and …schd.ws/hosted_files/discover2016/75/523 - Infor ION integration... · ION Integration with SolidWorks: Managing Items and BOMs

Step 2

• Stored procedure is simply an RPG program that takes the Solidworks XML as a parameter

d GTPUTITMS PR

d inXML like(XML_CLOB)

d GTPUTITMS PI

d inXML like(XML_CLOB)

25

Page 26: ION Integration with SolidWorks: Managing Items and …schd.ws/hosted_files/discover2016/75/523 - Infor ION integration... · ION Integration with SolidWorks: Managing Items and BOMs

Step 2

• Use RPG tools to parse XML and determine the items involved.

XML-SAX %Handler(MyHandler: myCommArea )

%XML(wrkxml : 'doc=string');

26

Page 27: ION Integration with SolidWorks: Managing Items and …schd.ws/hosted_files/discover2016/75/523 - Infor ION integration... · ION Integration with SolidWorks: Managing Items and BOMs

Step 2

• Clean up the data

27

Page 28: ION Integration with SolidWorks: Managing Items and …schd.ws/hosted_files/discover2016/75/523 - Infor ION integration... · ION Integration with SolidWorks: Managing Items and BOMs

Step 2

• If the item doesn’t exist or is incomplete in XA, fill in the missing pieces with the System Link LPI

28

Page 29: ION Integration with SolidWorks: Managing Items and …schd.ws/hosted_files/discover2016/75/523 - Infor ION integration... · ION Integration with SolidWorks: Managing Items and BOMs

• System Link LPI • Application program creates System-Link request

• LPI is called with the System-Link request as parameter • Size of request is limited to 64K characters

• System-Link server processes request and returns the System-Link

response to the LPI

• LPI sends the System-Link response back to the application program • Message is returned if an error condition is encountered

XML Request

XML Response

L

P

I

System-Link RPG

Program

Step 2

System-Link 29

Page 30: ION Integration with SolidWorks: Managing Items and …schd.ws/hosted_files/discover2016/75/523 - Infor ION integration... · ION Integration with SolidWorks: Managing Items and BOMs

LPI Parameter List (PSVPSR1R)

Parameter Description Usage Size Type

P#XREQ System-Link Request I 65,535 A Request from application program

P#XRSP System-Link Response O 65,535 A System-Link response

P#MRQR More query results O 8 A *YES if more records than returned

P#ERFD Internal errors O 8 A *YES if response contains error(s)

P#MSID External errors O 7 A PSX0122 - Error in processing (server not started) PSX0130 - Response too large

System-Link 30

Page 31: ION Integration with SolidWorks: Managing Items and …schd.ws/hosted_files/discover2016/75/523 - Infor ION integration... · ION Integration with SolidWorks: Managing Items and BOMs

Step 2

• After it’s done creating all the necessary items and everything it is ok to proceed, the Solidworks XML is passed back to the ION document flow.

• See the ION Technical Reference Guide to see examples of DB2/400 programs that receive, process, and return XML data.

31

Page 32: ION Integration with SolidWorks: Managing Items and …schd.ws/hosted_files/discover2016/75/523 - Infor ION integration... · ION Integration with SolidWorks: Managing Items and BOMs

Step 3

32

Page 33: ION Integration with SolidWorks: Managing Items and …schd.ws/hosted_files/discover2016/75/523 - Infor ION integration... · ION Integration with SolidWorks: Managing Items and BOMs

Step 3

• We need to transform the Solidworks XML to a BillOfMaterials BOD

33

Page 34: ION Integration with SolidWorks: Managing Items and …schd.ws/hosted_files/discover2016/75/523 - Infor ION integration... · ION Integration with SolidWorks: Managing Items and BOMs

Step 3

34

Page 35: ION Integration with SolidWorks: Managing Items and …schd.ws/hosted_files/discover2016/75/523 - Infor ION integration... · ION Integration with SolidWorks: Managing Items and BOMs

Step 3

• How do we that? • An ION XSLT Mapping.

35

Page 36: ION Integration with SolidWorks: Managing Items and …schd.ws/hosted_files/discover2016/75/523 - Infor ION integration... · ION Integration with SolidWorks: Managing Items and BOMs

Step 3

36

Start with a Solidworks XML,

“SWBom”

End up with a standard

BillOfMaterials BOD

Page 37: ION Integration with SolidWorks: Managing Items and …schd.ws/hosted_files/discover2016/75/523 - Infor ION integration... · ION Integration with SolidWorks: Managing Items and BOMs

Step 3

• Uses XSL to transform XML

• XSL stands for EXtensible Stylesheet Language, and is a style sheet language for XML documents.

• Standard language for transforming XML

• Different from conventional RPG programming but not terribly difficult to learn.

37

Page 38: ION Integration with SolidWorks: Managing Items and …schd.ws/hosted_files/discover2016/75/523 - Infor ION integration... · ION Integration with SolidWorks: Managing Items and BOMs

Step 3

• The end product of the transformation is a nicely formed BillOfMaterials BOD

38

Page 39: ION Integration with SolidWorks: Managing Items and …schd.ws/hosted_files/discover2016/75/523 - Infor ION integration... · ION Integration with SolidWorks: Managing Items and BOMs

Quick Recap

39

Page 40: ION Integration with SolidWorks: Managing Items and …schd.ws/hosted_files/discover2016/75/523 - Infor ION integration... · ION Integration with SolidWorks: Managing Items and BOMs

Quick Recap

40

Page 41: ION Integration with SolidWorks: Managing Items and …schd.ws/hosted_files/discover2016/75/523 - Infor ION integration... · ION Integration with SolidWorks: Managing Items and BOMs

Quick Recap

41

Page 42: ION Integration with SolidWorks: Managing Items and …schd.ws/hosted_files/discover2016/75/523 - Infor ION integration... · ION Integration with SolidWorks: Managing Items and BOMs

Quick Recap

42

Page 43: ION Integration with SolidWorks: Managing Items and …schd.ws/hosted_files/discover2016/75/523 - Infor ION integration... · ION Integration with SolidWorks: Managing Items and BOMs

Step 4

43

Page 44: ION Integration with SolidWorks: Managing Items and …schd.ws/hosted_files/discover2016/75/523 - Infor ION integration... · ION Integration with SolidWorks: Managing Items and BOMs

Step 4

• We need to submit the bill of material to XA for processing

44

Page 45: ION Integration with SolidWorks: Managing Items and …schd.ws/hosted_files/discover2016/75/523 - Infor ION integration... · ION Integration with SolidWorks: Managing Items and BOMs

Step 4

• Create a connection point to Infor XA

45

Page 46: ION Integration with SolidWorks: Managing Items and …schd.ws/hosted_files/discover2016/75/523 - Infor ION integration... · ION Integration with SolidWorks: Managing Items and BOMs

Step 4

46

Database driver is DB2/400

Host name of IBM i

AMELIB and AMFLIB

Page 47: ION Integration with SolidWorks: Managing Items and …schd.ws/hosted_files/discover2016/75/523 - Infor ION integration... · ION Integration with SolidWorks: Managing Items and BOMs

Step 4

47

• Add the BillOfMaterials BOD as a document that can be processed by the connection point.

• Check boxes designate the types of BODs that the XA can process.

• XA will receive a Process BOD

Page 48: ION Integration with SolidWorks: Managing Items and …schd.ws/hosted_files/discover2016/75/523 - Infor ION integration... · ION Integration with SolidWorks: Managing Items and BOMs

Step 4

48

• BOD is handed off to XA Inbox for processing

Page 49: ION Integration with SolidWorks: Managing Items and …schd.ws/hosted_files/discover2016/75/523 - Infor ION integration... · ION Integration with SolidWorks: Managing Items and BOMs

Inbound transactions from ION

DESTINATIONS

Solidworks

XA ENVIRONMENT

Bill of Material Business Object

transformed request

response System-Link

DESTINATION TRANSFORMATIONS

XA_Process BillOfMaterials

ION

BO

D

request (Bill of Material BOD)

response (BOD)

Page 50: ION Integration with SolidWorks: Managing Items and …schd.ws/hosted_files/discover2016/75/523 - Infor ION integration... · ION Integration with SolidWorks: Managing Items and BOMs

Inbound transactions from ION

What setup must be done in XA ?

Activate the relevant ‘*inbound’ transformation.

Page 51: ION Integration with SolidWorks: Managing Items and …schd.ws/hosted_files/discover2016/75/523 - Infor ION integration... · ION Integration with SolidWorks: Managing Items and BOMs

Request Flow: Inbound - ION

IN

SLS

SLC

SLA

Create Business

Objects

System-Link Adapter polls the Inbox to fetch XML messages inbound into

XA

Page 52: ION Integration with SolidWorks: Managing Items and …schd.ws/hosted_files/discover2016/75/523 - Infor ION integration... · ION Integration with SolidWorks: Managing Items and BOMs

Step 4 Bill of Material is created/updated in XA

52

Page 53: ION Integration with SolidWorks: Managing Items and …schd.ws/hosted_files/discover2016/75/523 - Infor ION integration... · ION Integration with SolidWorks: Managing Items and BOMs

Infor ION Intuitive, browser-based interface used to easily model

and manage all Infor ION services. ION DESK

ION SERVICE Connecting Infor and non-Infor applications across multiple platforms. Even

Management, Workflow and Pulse engines.

ION WORKFLOW

Automated Task Routing and Approvals

Through Workflow

ION ACTIVITY DECK

View and Handle Tasks, Alerts, and

Notifications. View Workflow Status

Diagram and Follow Application Documents.

ION EVENT MANAGEMENT

Business Task Completion Monitoring and Proactive Alerting

of Exceptions.

ION CONNECT

Communication and Secure Sharing of Data Across On-Premise and

Cloud Applications.

ION PULSE

Distribution of Tasks, Alerts, and

Notifications. Enable Prioritization,

Escalations and Work Management.

Page 54: ION Integration with SolidWorks: Managing Items and …schd.ws/hosted_files/discover2016/75/523 - Infor ION integration... · ION Integration with SolidWorks: Managing Items and BOMs

Event Management Overview

• Event Management offers functionality to monitor business events based on pre-defined business rules and alert users when exceptions occur.

• You can monitor these business event types: • Individual instances of documents

• For example, a new sales order in the form of a Sync.SalesOrder document

• Combinations of multiple events • For example, a sales order and its related shipment

• Non-occurrence of events • For example, an invoice has never been sent

• Applications that are enabled to work with ION Connect can use the Event Management functionality without any changes in the application.

54

Page 55: ION Integration with SolidWorks: Managing Items and …schd.ws/hosted_files/discover2016/75/523 - Infor ION integration... · ION Integration with SolidWorks: Managing Items and BOMs

Setting up Event in ION

55

Page 56: ION Integration with SolidWorks: Managing Items and …schd.ws/hosted_files/discover2016/75/523 - Infor ION integration... · ION Integration with SolidWorks: Managing Items and BOMs

Create Monitor: Add Document

56

Page 57: ION Integration with SolidWorks: Managing Items and …schd.ws/hosted_files/discover2016/75/523 - Infor ION integration... · ION Integration with SolidWorks: Managing Items and BOMs

Create Monitor: Add Attributes

57

Page 58: ION Integration with SolidWorks: Managing Items and …schd.ws/hosted_files/discover2016/75/523 - Infor ION integration... · ION Integration with SolidWorks: Managing Items and BOMs

Create Monitor: Condition Builder

58

Page 59: ION Integration with SolidWorks: Managing Items and …schd.ws/hosted_files/discover2016/75/523 - Infor ION integration... · ION Integration with SolidWorks: Managing Items and BOMs

Create Monitor: Rules

59

Page 60: ION Integration with SolidWorks: Managing Items and …schd.ws/hosted_files/discover2016/75/523 - Infor ION integration... · ION Integration with SolidWorks: Managing Items and BOMs

Create Monitor: Alert Settings

60

Page 61: ION Integration with SolidWorks: Managing Items and …schd.ws/hosted_files/discover2016/75/523 - Infor ION integration... · ION Integration with SolidWorks: Managing Items and BOMs

Create Monitor: Distribution

61

Page 62: ION Integration with SolidWorks: Managing Items and …schd.ws/hosted_files/discover2016/75/523 - Infor ION integration... · ION Integration with SolidWorks: Managing Items and BOMs

ION Event Architecture

62

Desk

Monitors (Business Rules)

Administrator

Connect

Event Management

Pulse

Activity Deck Business

Application

Ming.le Foundation (Workspace)

Business User

Sync Business Object Document

Page 63: ION Integration with SolidWorks: Managing Items and …schd.ws/hosted_files/discover2016/75/523 - Infor ION integration... · ION Integration with SolidWorks: Managing Items and BOMs

Lessons Learned

• A significant amount of time is required to ensure data is prepared to go from Solidworks to XA

• Once it’s in a standard BOD form the data flows very well

• Stored procedure calls from ION to the IBM i provide significant flexibility

63

Page 64: ION Integration with SolidWorks: Managing Items and …schd.ws/hosted_files/discover2016/75/523 - Infor ION integration... · ION Integration with SolidWorks: Managing Items and BOMs

Questions