Example code - EnterWorks_Process_Exchange_(EPX) - 10.6

EnterWorks EPX Programmers Reference

Product type
Software
Portfolio
Verify
Product family
EnterWorks
Product
Precisely EnterWorks > EnterWorks Process Exchange (EPX)
Version
10.6
Language
English
Product name
Precisely EnterWorks
Title
EnterWorks EPX Programmers Reference
Topic type
Programming Reference
Reference
First publish date
2007
Last edition
2023-07-28
Last publish date
2023-09-20T04:07:07.148709

This example code shows the method within the WorkItemExample creates a single comment value object and associates it to the work item version created in the example program.

WorkItemVersionExtendedVO version =

workItemFacade_.createWorkItem(

this.getSessionProfile(),startingActivity,

useWorkItemName,null);

// assign a comment to this work item version

ArrayList comments = new ArrayList();

CommentVO commentObject = new CommentVO();

// read the comment template from the work item

// example’s.properties file

String commentText = getMessage("workitem.comment.text",vargs); commentObject.setCommentText(commentText); comments.add(commentObject);

// execute the work item facade to create work item comments

workItemFacade_.addWorkItemVersionCommentList(

this.getSessionProfile(), version.getPrimaryKey(),

comments );