TIBCO ActiveMatrix BPM Business Studio is unable to export a DAA when data fields are declared at the embedded sub-process level.

TIBCO ActiveMatrix BPM Business Studio is unable to export a DAA when data fields are declared at the embedded sub-process level.

book

Article ID: KB0087146

calendar_today

Updated On:

Products Versions
TIBCO Business Studio - BPM Edition -
Not Applicable -

Description

Description:
TIBCO ActiveMatrix BPM Business Studio is unable to export a DAA when data fields are declared at the embedded sub-process level.
Symptoms:
Exporting DAA for the project results in the below pop-up:
---------------------------------------------
DAA Export.

Problem with DAA archive building.

Reason: Problems with artifacts preparation.

Problems with artifacts preparation.
  Creating Runtime Processes: Exception converting '/testTask/Process Packages/testTask.xpdl' to runtime process definition: null
---------------------------------------------

Business Studio workspace log contains the following exception:

!ENTRY com.tibco.xpd.resources 4 0 2013-07-16 13:53:03.427
!MESSAGE Unexpected exception
!STACK 0
java.lang.NullPointerException
                at com.tibco.bx.extension.java.converter.ConvertJava.convertDataMappingToCopy(ConvertJava.java:577)
                at com.tibco.bx.extension.java.converter.ConvertJava.createParameters(ConvertJava.java:252)
                at com.tibco.bx.extension.java.converter.ConvertJava.createJavaMethodType(ConvertJava.java:208)
...
                at com.tibco.bx.xpdl2bpel.converter.internal.ConvertProcess.convertProcessToBPELProcess(ConvertProcess.java:103)
                at com.tibco.bx.xpdl2bpel.converter.XPDL2BPEL.convertProcess(XPDL2BPEL.java:130)
                at com.tibco.bx.xpdl2bpel.converter.XPDL2BPEL.convertProcessToBPEL(XPDL2BPEL.java:116)
                at com.tibco.xpd.n2.bpel.utils.BPELN2Utils.buildXPDLFile(BPELN2Utils.java:143)
                at com.tibco.xpd.n2.bpel.builder.BPELOnDemandBuilder.buildSourceSet(BPELOnDemandBuilder.java:202)
                at com.tibco.xpd.resources.builder.ondemand.AbstractOnDemandBuilder.o00000(AbstractOnDemandBuilder.java:342)
                at com.tibco.xpd.resources.builder.ondemand.AbstractOnDemandBuilder.o00000(AbstractOnDemandBuilder.java:276)
                at com.tibco.xpd.resources.builder.ondemand.AbstractOnDemandBuilder.buildProject(AbstractOnDemandBuilder.java:207)
                at com.tibco.xpd.n2.pe.component.PECompositeContributor.prepareProject(PECompositeContributor.java:799)
                at com.tibco.xpd.daa.internal.wizards.AbstractMultiProjectDAAGenerationWithProgress.super(AbstractMultiProjectDAAGenerationWithProgress.java:484)
                at com.tibco.xpd.daa.internal.wizards.AbstractMultiProjectDAAGenerationWithProgress.Ò00000(AbstractMultiProjectDAAGenerationWithProgress.java:440)
                at com.tibco.xpd.daa.internal.wizards.AbstractMultiProjectDAAGenerationWithProgress.access$2(AbstractMultiProjectDAAGenerationWithProgress.java:427)
                at com.tibco.xpd.daa.internal.wizards.AbstractMultiProjectDAAGenerationWithProgress$2.run(AbstractMultiProjectDAAGenerationWithProgress.java:268)
                at org.eclipse.core.internal.resources.Workspace.run(Workspace.java:1800)
                at org.eclipse.core.internal.resources.Workspace.run(Workspace.java:1782)
                at com.tibco.xpd.daa.internal.wizards.AbstractMultiProjectDAAGenerationWithProgress.run(AbstractMultiProjectDAAGenerationWithProgress.java:265)
                at org.eclipse.jface.operation.ModalContext$ModalContextThread.run(ModalContext.java:121)


Cause:
Business Studio, while exporting the DAA, does not currently handle the local scope data fields. The reason for the exception is due to the data fields involved in the mappings were declared at the embedded sub-process level, while the BPEL converter only recognizes the data fields declared at the process level.

Issue/Introduction

TIBCO ActiveMatrix BPM Business Studio is unable to export a DAA when data fields are declared at the embedded sub-process level.

Resolution

Declare all variables at the process level. Variables declared at the embedded sub-process level will not be recognized.

TIBCO ActiveMatrix Business Studio v3.6.0, support for local scope data fields at an embedded sub-process has been added. Since we have the “Data Fields” config tab in all the activities, a validation rule has also been added to avoid such errors. In case the local scope data fields are not supported for an activity, the validation error will be thrown in Business Studio.

Additional Information

JIRA ID – BX-2881