Open topic with navigation

TIBCO ActiveMatrix BusinessWorks™ Plug-in Development Kit 6.3.1

# How to Create and Update Output at Run Time

BusinessWorks Plug-in Development Kit provides a protected <A> N evalOutput(N inputData, ProcessingContext<N> processingcontext, Object data) method to create and update runtime output.

You can find this method in the ActivityName_ActivityTypeActivity.java file from the runtime bundle. If you have selected using XSD to create the activity output, then the XSD elements are created inside this method.

    protected <A> N evalOutput(N inputData, ProcessingContext<N> processingContext, Object data) throws Exception {

    	SayHelloOutput sayHelloOutput = new SayHelloOutput();
    	sayHelloOutput.setOutput("Hello World");
    	N output = PaletteUtil.parseObjtoN(SayHelloOutput.class, sayHelloOutput, processingContext, activityContext.getActivityOutputType().getTargetNamespace(), "SayHelloOutput");
    	// begin-custom-code
    	// add your own business code here
    	// end-custom-code
    	return output;
    }

Did you find this helpful?

Yes No
Great!
Thanks for taking the time to give us some feedback.
Sorry about that

Why wasn't this helpful? (check all that apply)

Could not find what I was looking for
Instructions confusing or unclear
Instructions did not work

Want to tell us more?

Please select at least one option or provide details about the issue!!

Error occurred while submitting feedback.

Error2 occurred while submitting feedback.

TIBCO ActiveMatrix BusinessWorks™ Plug-in Development Kit

Copyright © 2014-2022. TIBCO Software Inc. All Rights Reserved.