IBM Support

PH22713: WORKFLOW OPERATION THROWING NULLPOINTEREXCEPTION

Subscribe to this APAR

By subscribing, you receive periodic emails alerting you to the status of the APAR, along with a link to the fix after it becomes available. You can track this item individually or track all items by product.

Notify me when this APAR changes.

Notify me when an APAR for this component changes.

 

APAR status

  • Closed as program error.

Error description

  • Use case: 2 currency fields are defined.
    a.	A workflow is set so that if currency field 1 is empty but
    currency field 2 is not, then copy the value from currency field
    2 to currency field 1.
    b.	If currency field 2 is empty but currency field 1 is not,
    then copy the value from currency field 1 to currency field 2.
    c.	If both currency fields are empty, set both to 0
    
    When the above is implemented, a nullpointerexception is thrown
    during testing.
    
    Further testing shows that this happens when there are at least
    2 operations, and if the second operation tests the currency
    field for null.
    
    Prerequisites:
    
    OpenPages installed
    
    Set up fields
    1.	Log into OpenPages as OpenPagesAdministrator
    2.	Switch to Standard UI
    3.	Navigate to Administration -> Field Groups
    4.	Enable System Admin Mode (SAM)
    5.	Click Add, provide a name, then click Create
    6.	Click into the new group and add 2 new fields of currency
    data type
    7.	Navigate to Administration -> Object Types and select
    SOXIssue
    8.	Click Include and select the new field group, then click Add
    9.	Disable SAM mode
    10.	Navigate to Administration -> Profiles and select the
    profile to test against
    11.	Click on SOXIssue and include the 2 new currency fields to
    the Object Fields list
    
    Create View and Workflow
    1.	Log into OpenPages as OpenPagesAdministrator in TaskUI
    2.	Click on the Cogwheel and navigate to Manage Views
    3.	Click Add New, select Issue for the Object Type, enter a view
    name, set Type to Task
    4.	Click on the Rules tab, change view priority to 1 and select
    your current profile, then click Add
    5.	Click Add Section, provide a Label then click Done
    6.	Drag the fields Name, Issue Status and the 2 new currency
    fields into the section, then click Publish
    7.	Click on the Cogwheel and navigate to Manage Workflows
    8.	Click Add New, enter a Name, select Issue for the Object
    Type, set Type to Manual Start, then click Add
    9.	On the left navbar, drag a stage onto the canvas and provide
    a name, Review
    10.	On the left navbar, drag another stage onto the canvas and
    provide a name, and change the Type to End
    11.	Join the stages from Start to Review, and from Review to
    End, providing action names
    12.	Click on the Action arrow between Start and Review, then on
    the right panel, click on Validations and Operations and then
    click Add Operation
    13.	Set Operation to ?set fields?, provide a name, then click
    Add Condition
    14.	Select currency field 1 for the object field, change
    Operator to empty, then click Done
    15.	Click on Add Field, set Object Field to currency field 1,
    and provide a value of 5, then click Done
    16.	Click Done
    17.	Click on Add Operation to add another operation
    18.	Set Operation to ?set fields?, provide a name, then click
    Add Condition
    19.	Select currency field 1 for the object field, change
    operation to empty, then click Done
    20.	Click on Add Field, set Object Field to currency field 1,
    tick ?A field in the current object?, select currency field 2
    for Object Field, then click Done
    21.	Click Done
    22.	Publish the workflow
    
    Steps to Reproduce:
    1.	Log into OpenPages as OpenPagesAdministrator
    2.	Navigate to Remediation -> Issues
    3.	Click on Add New, enter a Name and any mandatory fields,
    leaving the 2 new currency fields empty, then click Save.
    4.	On the task view, click on the currency field 2 and enter a
    value, then click save.
    5.	Click on Action -> Start Workflow to start the workflow, and
    click Continue. Confirm an error pops up on the top right
    corner.
    6.	Navigate to Manage Workflows and edit the Issue workflow
    7.	Under the Action, delete the first Operation so that only the
    second Operation remains, and click Publish
    8.	Navigate back to the test Issue, click on Action -> Start
    Workflow to start the workflow, and click Continue. Confirm this
    works as expected now.
    
    Expected Results:
    
    The workflow Action should be able to having multiple Operations
    against an empty currency field
    
    Actual Results:
    
    If multiple Operations are defined for an empty currency field,
    an error will occur in the workflow
    

Local fix

Problem summary

  • ****************************************************************
    * USERS AFFECTED:                                              *
    * OpenPages Users                                              *
    ****************************************************************
    * PROBLEM DESCRIPTION:                                         *
    * WORKFLOW OPERATION THROWING NULLPOINTEREXCEPTION             *
    ****************************************************************
    * RECOMMENDATION:                                              *
    * Customers should download OpenPages with Watson 8.2 Fix Pack *
    * 1 (8.2.0.1). See the following document for details on       *
    * obtaining OpenPages 8.2.0.1:                                 *
    * https://www.ibm.com/support/pages/openpages-watson-82-fix-pa *
    * ck-1                                                         *
    ****************************************************************
    

Problem conclusion

Temporary fix

Comments

APAR Information

  • APAR number

    PH22713

  • Reported component name

    OPENPAGES GRC

  • Reported component ID

    5725D5100

  • Reported release

    810

  • Status

    CLOSED PER

  • PE

    NoPE

  • HIPER

    NoHIPER

  • Special Attention

    NoSpecatt / Xsystem

  • Submitted date

    2020-02-26

  • Closed date

    2020-11-23

  • Last modified date

    2020-11-23

  • APAR is sysrouted FROM one or more of the following:

  • APAR is sysrouted TO one or more of the following:

Fix information

  • Fixed component name

    OPENPAGES GRC

  • Fixed component ID

    5725D5100

Applicable component levels

[{"Line of Business":{"code":"LOB10","label":"Data and AI"},"Business Unit":{"code":"BU059","label":"IBM Software w\/o TPS"},"Product":{"code":"SSFUEU","label":"IBM OpenPages with Watson"},"Platform":[{"code":"PF025","label":"Platform Independent"}],"Version":"810"}]

Document Information

Modified date:
24 November 2020