uCosminexus Service Platform, Basic Development Guide

[Contents][Glossary][Index][Back][Next]

9.5.3 Updating Variables

Change the value of the variable appearing in variable view and reflect the change in the business process. If the value is not set for the variable, it cannot be updated.

The following table shows the scope of values that can be entered for each variable type.

Table 9-5 Scope of values that can be entered for each variable type

Variable type Scope of values
numeric type Value that can be interpreted by the valueOf(java.lang.String) method of java.lang.Double (Example:+1, 3.14, 1e-2d)
boolean type True or false
string type Any character string (Example:15-inch LCD display)
message type#1
  • In case of XML type
    Any XML(example: <?xml version="1.0" encoding="UTF-8"?><message>Hello</message>)
  • In case of non-XML type#2
    Any binary data (example: Hello)
  • In case of any type#2
Any format

#1
If the message type variable changes, the XML character always changes to UTF-8 (even if a character code other than UTF-8 is specified, it converts to UTF-8).

#2
When the variable type is non-XML type and any type, enter the value in hexadecimal expression.

Variables can be updated by the method for changing in the Set value dialog box, the method for changing from the input field of Variable view or the method for changing from the Value cell of Variable view.

The following describes the procedure for updating variables.

Organization of this subsection
(1) Updating in the Set value dialog box
(2) Updating from the input field of Variable view
(3) Updating from the Value cell of Variable view

(1) Updating in the Set value dialog box

  1. Right click the variable to be updated in Variable view and choose Change value.
    The Set value dialog box appears. The contents displayed in the Set value dialog box differ for message type and other than message type. For details about the Set value dialog box in each case, see Cosminexus Service Platform Reference.
  2. Enter a value in the input field of the Set value dialog box.
    If the variable type is message type, click Save XML to save the entered variable value in the XML file. Click Read XML to read in the input field the variable value saved in the XML file.
  3. Click OK button.
    The entered variable value is reflected in the business process. The cell of the updated variable appears in yellow.

(2) Updating from the input field of Variable view

  1. In Variable view, choose the variable to be updated.
    The selected variable value appears in the input field in the lower part of Variable view.
  2. Enter the value in the input field.
  3. Update the variable by either of the following methods:
    • Click the Ctrl key + S key
    • Right click and choose Assigned value
    The entered variable value is reflected in the business process. The cell of the updated variable appears in yellow.

(3) Updating from the Value cell of Variable view

  1. In Variable view, choose the Value cell of the variable to be updated.
  2. Enter the value in the Value cell.
  3. Click the Enter key.
    The entered variable value is reflected in the business process. The cell of the updated variable appears in yellow.