Agile PLM Part Numbers     Creating a custom    AutoNumber source
Introduction Sometimes the AutoNumber facility in  Agile PLM does not offer the level of  sophistication needed Agile pr...
Creating the AutoNumber Source1. Create a Java class that implements the   ICustomAutoNumber and its getAutoNumber   metho...
Create the Classpackage com.plmmechanic;import com.agile.api.*;import com.agile.px.*;public class HWAutoNumber implements ...
Create the Meta File Create the file  com.agile.px.ICustomAutoNumber Contents are simply the full class name of the  new...
Package the ExtensionAn AutoNumber extension is a Java archive file,or JAR file and can be opened with a Zip fileutility. ...
Install the ExtensionPlace the extension on the application server as youwould with any other process extension
Add the AutoNumber Assign a name for the  source Choose the type of  AutoNumber as  custom Select the new source  from ...
Now it’s Ready for Use
About Us PLM Mechanic specializes in the technical  aspects of Oracle’s Agile PLM solution We offer the following servic...
Contact Us   Web: http://www.plmmechanic.com   Blog: http://www.plmmechanic.com/blog   Twitter: @PLMMechanic   Email: ...
Upcoming SlideShare
Loading in …5
×

Create a custom AutoNumber source

870 views

Published on

Sometimes the AutoNumber facility in Agile PLM does not offer the level of sophistication needed to produce a truly intelligent part number. Fortunately, Agile provides an extension point to create custom AutoNumber sources. This blog will outline the steps needed to create the code for the custom source and get it installed in Agile so it is ready to use.

Published in: Technology
0 Comments
0 Likes
Statistics
Notes
  • Be the first to comment

  • Be the first to like this

No Downloads
Views
Total views
870
On SlideShare
0
From Embeds
0
Number of Embeds
3
Actions
Shares
0
Downloads
17
Comments
0
Likes
0
Embeds 0
No embeds

No notes for slide

Create a custom AutoNumber source

  1. 1. Agile PLM Part Numbers Creating a custom AutoNumber source
  2. 2. Introduction Sometimes the AutoNumber facility in Agile PLM does not offer the level of sophistication needed Agile provides an extension point to create custom AutoNumber sources
  3. 3. Creating the AutoNumber Source1. Create a Java class that implements the ICustomAutoNumber and its getAutoNumber method2. Create com.agile.px.ICustomAutoNumber that contains the name of the new custom class above. This is used by Agile to load the relevant classes into Agile making them available in the dropdowns.
  4. 4. Create the Classpackage com.plmmechanic;import com.agile.api.*;import com.agile.px.*;public class HWAutoNumber implements ICustomAutoNumber { public ActionResult getAutoNumber(IAgileSession session, INode actionNode) { // create a reference to an ActionResult class type ActionResult number; try { // Here is where you could do real fancy things like connect // to ERP systems or other authoritative systems to pull an // intelligent auto number. This is a one use example. number = new ActionResult(ActionResult.STRING, “HW1”); } catch (Throwable th) { // This would be a great place to capture exception information. number = new ActionResult(ActionResult.EXCEPTION, th); } return number; }}
  5. 5. Create the Meta File Create the file com.agile.px.ICustomAutoNumber Contents are simply the full class name of the new AutoNumber. In this case its: com.plmmechanic.HWAutoNumber
  6. 6. Package the ExtensionAn AutoNumber extension is a Java archive file,or JAR file and can be opened with a Zip fileutility. Here is the internal structure of the file:+---com¦ +---plmmechanic¦ HWAutoNumber.class+---META-INF +---services com.agile.px.ICustomAutoNumber
  7. 7. Install the ExtensionPlace the extension on the application server as youwould with any other process extension
  8. 8. Add the AutoNumber Assign a name for the source Choose the type of AutoNumber as custom Select the new source from the dropdown Assign the where used
  9. 9. Now it’s Ready for Use
  10. 10. About Us PLM Mechanic specializes in the technical aspects of Oracle’s Agile PLM solution We offer the following service: – Agile PLM installations and upgrades – Agile PLM maintenance and help desk functions – Agile PLM hosting – Customization PLM Mechanic also has several product offerings
  11. 11. Contact Us Web: http://www.plmmechanic.com Blog: http://www.plmmechanic.com/blog Twitter: @PLMMechanic Email: sales@plmmechanic.com Phone: 512-827-2262 Fax: 512-582-2932

×