IBM Support

PM61358: Using Java API to Change an Activity Action into a CallOperation

Subscribe

You can track all active APARs for this component.

APAR status

  • Closed as program error.

Error description

  • Description
    -----------
    
    Customer has a number of Activity diagrams populated with
    Actions, which need to be changed into CallOperations. Manually
    redrawing large numbers of Activity diagrams is very poor use of
    engineers' time.
    However, the JAVA API method is not working on trying to
    automate the same.
    Using the method 'setStateType()' with argument as
    'CallOperation' on an action throws runtime exception.
    
    The sample code tried :
    
    public class ActivityCls {
    
    
    
     public static void main(String[] args)
    
     {
    
      IRPApplication app =
    RhapsodyAppServer.getActiveRhapsodyApplication();
    
    
    
    
      IRPState myState = (IRPState) app.getSelectedElement();
    
      //System.out.println(myState.getName() + ' : ' +
    
    myState.getStateType() + ' : ' + myState.getMetaClass());
    
    
    
    
    
      myState.setStateType('CallOperation');
    
      //myState.changeTo('CallOperation');
    
    
    
     }
    
    
    
    }
    

Local fix

Problem summary

  • ****************************************************************
    * USERS AFFECTED:                                              *
    ****************************************************************
    * PROBLEM DESCRIPTION:                                         *
    ****************************************************************
    * RECOMMENDATION:                                              *
    ****************************************************************
    Fixed so myState.changeTo("CallOperation") will work fine.
    

Problem conclusion

  • Fixed in Scorpio
    

Temporary fix

Comments

APAR Information

  • APAR number

    PM61358

  • Reported component name

    TLOGIC RHAPSODY

  • Reported component ID

    5724V74RP

  • Reported release

    752

  • Status

    CLOSED PER

  • PE

    NoPE

  • HIPER

    NoHIPER

  • Special Attention

    NoSpecatt

  • Submitted date

    2012-03-28

  • Closed date

    2012-09-21

  • Last modified date

    2012-09-21

  • 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

    TLOGIC RHAPSODY

  • Fixed component ID

    5724V74RP

Applicable component levels

  • R752 PSN

       UP



Document information

More support for: Rational Rhapsody

Software version: 7.5.2

Reference #: PM61358

Modified date: 21 September 2012