Add the node pane of a button

Hello

I want to have a button that will include another node beyond the text and image that are part of the key

This node as an example will be a circle I'll change its color from gray to green if the button is pressed

I try to do that with background / BackgroundFill unsuccessfully

I tried to access the component / area of the button, but I can't find a way to do it.

Y at - it someone who can direct me to some examples or documentation, how can I

Thanks, Shlomo

Rather than trying to manipulate an internal component inside your button, create a wrapper control that it its own component and contains the node that you want to render outside of the button and the button.

Try this example and the comment on the question of whether it is what you are looking for:

Import javafx.application.Application;

Import javafx.geometry.Insets;

Import javafx.scene.Scene;

Import javafx.scene.control.ToggleButton;

Javafx.scene.effect import. *;

Javafx.scene.layout import. *;

Import javafx.scene.paint.Color;

Javafx.scene.shape import. *;

Import javafx.stage.Stage;

SerializableAttribute public class UnlimitedButtonTester extends Application {}

@Override

{} public void start (steps)

Button OffsetToggleButton = new OffsetToggleButton();

Presentation of StackPane = new StackPane (button);

layout.setPadding (new Insets (40));

a final scene = new Scene (layout);

stage.setScene (scene);

internship. Show();

}

SerializableAttribute public class OffsetToggleButton extends component {}

private ToggleButton control button = new ToggleButton();

private form onGraphic = createGraphic (Color.GREEN, true, true);

private form offGraphic = createGraphic (Color.GRAY, false, false);

public OffsetToggleButton() {}

getChildren () .setAll (button, offGraphic);

formatButton();

button.selectedProperty () .addListener (observable-> {}

formatButton();

});

}

private form createGraphic (color, Boolean addEffect, rightAlign Boolean) {}

Graph of the form = new circle (7 colors);

If {(addEffect)

Drop shadow effect = new DropShadow (8 colors);

effect.setInput (new Glow());

graphic.setEffect (effect);

}

If (rightAlign) {}

graphic.layoutXProperty () .bind (button.widthProperty ());

}

return the graphics;

}

private void formatButton() {}

If (button.isSelected ()) {}

button.setText("On");

getChildren () .set (1, onGraphic);

} else {}

button.setText ("Off");

getChildren () .set (1, offGraphic);

}

}

}

Public Shared Sub main (String [] args) {}

Application.Launch (args);

}

}

Tags: Java

Similar Questions

  • How to add the full value of two buttons?

    How to add the full value of two buttons (any key) VI and display it in the output text box? I am attaching a sample program, but I know that his evil... Help, please

    Try this

  • Add the node to the xml file

    Hello

    I'm trying to scan a file xml in the following way:

    // read the content
        var xml_file = File(xml_file_path);
        xml_file.open('r');
        var content = xml_file.read();
        xml_file.close();
    
        // add the node
        var root = new XML(content);
        var unit_test_resolution = <unit-test>{resolution}</unit-test>;
        root.appendChild(unit_test_resolution);
    
        // replace the file
        var my_file = new File(xml_file_path);
        var edit_content = root.toXMLString();
        my_file.open('w');
        my_file.writeln('<?xml version="1.0" encoding="UTF-8"?>');
        my_file.writeln(edit_content);
    

    I'm not sure it's a good solution can someone help me? For example, my file already has the ' <? XML version = "1.0" encoding = "UTF-8"? > ' header. But if I read it this way I must put it each time egain...

    Thank you in advance for your help.

    Best regards.
    Bastien

    It's xtools/xlib/stdlib.js. I used it to manage my file xml reading and writing for several years.

    Stdlib.readXMLFile = function(fptr) {
      var rc;
      var file = Stdlib.convertFptr(fptr);
      if (!file.exists) {
        Error.runtimeError(48); // File/Folder does not exist
      }
      file.encoding = "UTF8";
      file.lineFeed = "unix";
      rc = file.open("r", "TEXT", "????");
      if (!rc && Stdlib.IOEXCEPTIONS_ENABLED) {
        Error.runtimeError(Stdlib.IO_ERROR_CODE, Stdlib.fileError(file));
      }
      var str = file.read();
      rc = file.close();
      if (!rc && Stdlib.IOEXCEPTIONS_ENABLED) {
        Error.runtimeError(Stdlib.IO_ERROR_CODE, Stdlib.fileError(file));
      }
      return new XML(str);
    };
    Stdlib.writeXMLFile = function(fptr, xml) {
      var rc;
      if (!(xml instanceof XML)) {
        Error.runtimeError(19, "xml"); // "Bad XML parameter";
      }
      var file = Stdlib.convertFptr(fptr);
      file.encoding = "UTF8";
      rc = file.open("w", "TEXT", "????");
      if (!rc && Stdlib.IOEXCEPTIONS_ENABLED) {
        Error.runtimeError(Stdlib.IO_ERROR_CODE, Stdlib.fileError(file));
      }
      // unicode signature, this is UTF16 but will convert to UTF8 "EF BB BF"
      // optional
      //file.write("\uFEFF");
      file.lineFeed = "unix";
      file.writeln('');
      rc = file.write(xml.toXMLString());
      if (!rc && Stdlib.IOEXCEPTIONS_ENABLED) {
        Error.runtimeError(Stdlib.IO_ERROR_CODE, Stdlib.fileError(file));
      }
      rc = file.close();
      if (!rc && Stdlib.IOEXCEPTIONS_ENABLED) {
        Error.runtimeError(Stdlib.IO_ERROR_CODE, Stdlib.fileError(file));
      }
      return file;
    };
    

    A lot of paranoia coding in there, but after having done PSJS coding for a decade or so paranoia is a more secure state of mind.

    X

  • How can I add the "open a new tab" button back to tabs &amp; bookmarks to the menu bar? I was able to click and drag the bookmarks there and the tab button has always been thr

    How can I add the "open a new tab" plus button back to tabs & bookmarks to the menu bar? I was able to click on and drag the bookmarks and folders containing the bookmarks in the menu bookmark to a bar of tools and click the tab + button was always on the right side of a tab before seeing ff 13.0.1 on windows 7.

    I need back, areas have red around em

    http://i48.Tinypic.com/25gue0x.jpg

    Draggin ' bookmarks toolbar items, it's done. Thank you for the mind can.

  • Add the node to the cluster

    Dear all,

    OS: RHEL 4

    DB = 10.2.0.4.0

    Storage file system: OCFS2

    Cluster software and database has been added, but when I try to add my cluster instance I get following error message.

    The directory "/ database/archivelog ' MANDATORY DB_UNIQUE_NAME ROUVRIR = timsis not on the cluster file system shared between the nodes 'ud1 UD2.

    Thanks and greetings

    Jean Louis

    Hello

    Please check the value of the parameter of log_archive_dest_1, this problem occurs when the location has already been added to another instance.

    Please check the value of the setting above and re run the following command:-

    ALTER system set log_archive_dest_1 = "LOCATION = / data/archivelog = (ALL_LOGFILES, ALL_ROLES) db_unique_name =valid_for" scope = mΘmoire

    Concerning

    Jihane Narain Sylca

  • Add the node to the clusterware existing

    Last week I needed to add a node to an existin WHAT CARS and finally I did, but I'm confused because the documentation talking about both procedures:

    1 - cloning the Oracle ClusterWare and Oracle Database

    2 - addNode.sh script

    Could you please explain me who are the different between these two methods?

    Exactly how does one or the other?

    Thank you in advance.

    Hello

    1 - cloning the Oracle ClusterWare and Oracle Database

    This means to clone your RAC environment. You have a CCR environment and you want to create another, you can clone this CAR to build a new one.

    addNode.sh script

    This method is used to add a node in a RAC (there is no other CARS in question here). In this case, you can tell that clusterware and House of database is copied into the new node coming in this CAR, but this is different from cloning, which involves the creation of a new CARS together.

    Salman

  • How to add the node in the tree.

    Hi all


    I want to add a new tree node. Can we add a new node to a tree? Please help me.

    Sarah

    Hi Sarah!

    If you fill your tree with a group of archives, simply add another line to this group
    and fill the tree with the build-in the set_tree_property ("block.tree", ftree.record_group, your_group_id).

    Concerning

  • Add the error node

    Hello

    I try to add the node two-node Oracle 11g RAC, but I had
    a mistake. I follow the steps:
    # export ORACLE_HOME=/u01/app/11.2.0/grid
    # cd $ORACLE_HOME/oui/bin
    # ./addNode.sh -silent "CLUSTER_NEW_NODES={rac3}" "CLUSTER_NEW_VIRTUAL_HOSTNAMES={rac3-vip}"
    For example, the following in the log file:
    INFO: Environment Variables:
    
    INFO:   ORACLE_HOME = /u01/app/11.2.0/grid
    
    INFO:   PATH = /u01/app/oracle/product/11.2.0/db_1/bin:/usr/sbin:/usr/kerberos/bin:/usr/local/bin:/bin:/usr/bin:/home/oracle/b
    in
    
    INFO:   CLASSPATH =
    
    INFO: Username:oracle
    
    INFO: Install area Control created with access level  1
    
    INFO: Oracle Universal Installer version is 11.2.0.1.0
    
    INFO: Setting variable 'ORACLE_HOME' to '/u01/app/11.2.0/grid'. Received the value from the command line.
    INFO: Setting variable 'CLUSTER_NEW_NODES' to 'rac3'. Received the value from the command line.
    INFO: Setting variable 'CLUSTER_NEW_VIRTUAL_HOSTNAMES' to 'rac3-vip'. Received the value from the command line.
    INFO: Setting variable 'PREREQ_CONFIG_LOCATION' to ''. Received the value from variable association.
    INFO: Setting variable 'FROM_LOCATION' to '/u01/app/11.2.0/grid/inventory/ContentsXML/comps.xml'. Received the value from a co
    de block.
    INFO: Setting variable 'ROOTSH_LOCATION' to '/u01/app/11.2.0/grid/root.sh'. Received the value from a code block.
    INFO: Setting variable 'ROOTSH_STATUS' to '3'. Received the value from a code block.
    INFO: Setting variable 'ORACLE_HOME' to '/u01/app/11.2.0/grid'. Received the value from the command line.
    INFO: Setting variable 'CLUSTER_NEW_NODES' to 'rac3'. Received the value from the command line.
    INFO: Setting variable 'CLUSTER_NEW_VIRTUAL_HOSTNAMES' to 'rac3-vip'. Received the value from the command line.
    INFO: Setting variable 'PREREQ_CONFIG_LOCATION' to ''. Received the value from variable association.
    INFO: Setting variable 'FROM_LOCATION' to '/u01/app/11.2.0/grid/inventory/ContentsXML/comps.xml'. Received the value from a code block.
    INFO: Setting variable 'ROOTSH_LOCATION' to '/u01/app/11.2.0/grid/root.sh'. Received the value from a code block.
    INFO: Setting variable 'ROOTSH_STATUS' to '3'. Received the value from a code block.
    INFO:
    *** Welcome Page***
    INFO: Setting variable 'ORACLE_HOME_NAME' to 'Ora11g_gridinfrahome1'. Received the value from a code block.
    INFO: SRVM ClusterInfo.IsLocalOnly() called. Return value obtained is 'true'.
    INFO: The CRS clusterware location for 'oracle.crs 10.1.0.2.0' is '/u01/app/11.2.0/grid'.
    INFO: CRS clusterware detected.
    INFO: Vendor clusterware is not detected.
    INFO: Local node 'rac1' is derived from the Oracle home properties.
    INFO: Setting variable 'LOCAL_NODE' to 'rac1'. Received the value from a code block.
    INFO: Setting variable 'EXISTING_REMOTE_NODES' to 'rac2'. Received the value from a code block.
    INFO: Setting variable 'REMOTE_NODES' to 'rac3'. Received the value from a code block.
    INFO: Setting the 'ExistingClusterNodes' property to 'rac1,rac2'.
    INFO: Setting the 'EnableVirtualHostNameEntry' property to 'true'.
    INFO: Setting the 'NewNodes ( CLUSTER_NEW_NODES )' property to 'rac3'. Received the value from the command line.
    INFO: Setting variable 'REMOTE_NODES' to 'rac3'. Received the value from a code block.
    INFO: Setting variable 'CLUSTER_NODES' to 'rac1,rac2,rac3'. Received the value from a code block.
    INFO: Performing tests to see whether nodes rac2,rac3 are available
    INFO: Validating nodes rac2...
    INFO: Checking if nodes are alive...
    INFO: Validating user equivalence...
    INFO: Validating nodes rac3...
    INFO: Checking if nodes are alive...
    INFO: Validating user equivalence...
    INFO: Status of nodes in the cluster:
    Status of node 'rac2':
    Node is okay
    
    Status of node 'rac3':
    null
    
    --------------------------------------------------------------------------
    
    SEVERE: The selected remote nodes 'rac3' are not accessible.
    INFO: User Selected: Yes/OK
    When I try to ping for the new node, it is correct.

    So, can you help me, please?

    Thank you very much.

    Hello

    You can cancel the configuration performed by root.sh using the following:

    /U01/app/11.2.0/grid/CRS/install/rootcrs.pl - deconfig-force

    Thus, after the above command, you can perform the root.sh again.

    Kind regards.

  • How to add the png file in another png file

    Greetings

    How to add another png to a png file

    for example: I have the png file 1) 320 * 480

    second is 2) very small png file

    I want to add the small png like this button (320 * 480) of the png file, how can I do

    Help, please

    account s

    Anthony singh

    It is not much more left to do, really:

    1. create your custom - bitmap button class copy most of the project advanced user interface.

    2. create your personalized with background image - again, Manager copy most of "adding background... picture." "with all the changes that you deem necessary.  You can replace HorizontalFieldManager with VerticalFieldManager, for example, according to your needs. Also, if you've read this article, visit again and take a look at the note at the bottom - I just added a. It might not be relevant today, but may be useful later - I answered enough questions here on the forums, so people do not experience this problem.

    3 create an instance of your custom Manager to enlarge the image as the parameter - let's call him myBgMgr, for example. Add myBgMgr to your screen.

    4. Add the new BitmapButtonField (smallerImage,...) to myBgMgr.

    That's all!

  • Want to add Action Listener programmatically on a button created Progammatically.

    Scenario is,

    I want to add the listener of pressing a button I've manually created and added to the page over time.

    public void editPanel (ActionEvent actionEvent)
    {
    System.out.println ("invoked");
    }

    This is my code to the action listener, she is hard-coded

    Hey Zaid,

    Try the following code.

    1. create the inner class on your managed bean.

    private class MyListener implements ActionListener {

    {} public void processAction (ActionEvent actionEvent)

    write your action listener code here...

    System.out.println ("invoked");

    }

    }

    2. then add actionListener class to your button.

    Addpopup RichCommandImageLink = new RichCommandImageLink();

    addpopup.addActionListener (new MyListener());

  • How to add buttons/text to the component right when the selection is made from the left pane

    Hello

    I am new to the JAVA swing development.

    I am creating an application where in the pane on the left, there is a tree Menu and in the right pane, I have a few buttons. In view of the options in the left pane, I should be able to add more buttons and or the text to the right pane.

    How to achieve this? If you guys have any example code, please post or suggest ways to accomplish.

    Thanks in advance.
    user2325986

    It seems that you declare leftPane, rightPane and different main_Frame and have too much static and final elements. Look at the code below. I put GridBagLayout to the framework for a better look.

    I don't know what you mean when you say that you only want to right panel and you want to add. Also, I think you'd be better off using CardLayout to right panel as stated jduprez

    When you want to display using code {_code_} code here {_code_} (code in parentheses without underscores) tags

    Here is a working example of what you had:

    import javax.swing.*;
    import javax.swing.event.*;
    import java.awt.*;
    import javax.swing.tree.*;
    
    public class Main
    {
        public static void main(String[] args)
        {
            main_Frame.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);
            main_Frame.setVisible(true);
        }
    
        public static TestFrame main_Frame = new TestFrame();
    }
    
    class TestFrame extends JFrame
    {
        public TestFrame()
        {
            setTitle("Test Frame");
            setSize(500, 500);
            setLayout(new GridBagLayout());
    
            leftGBC = new GridBagConstraints();
            leftGBC.gridx = 0;
            leftGBC.gridy = 0;
            leftGBC.fill = leftGBC.BOTH;
            leftGBC.weightx = 10;
            leftGBC.weighty = 100;
    
            rightGBC = new GridBagConstraints();
            rightGBC.gridx = 1;
            rightGBC.gridy = 0;
            rightGBC.fill = rightGBC.BOTH;
            rightGBC.weightx = 100;
            rightGBC.weighty = 100;
    
            leftPanel = new JPanel();
            leftPane = new JScrollPane(leftPanel);
            leftPane.setHorizontalScrollBarPolicy(JScrollPane.HORIZONTAL_SCROLLBAR_ALWAYS);
            leftPane.setVerticalScrollBarPolicy(JScrollPane.VERTICAL_SCROLLBAR_ALWAYS);
    
            rightPanel = new JPanel();
            rightPane = new JScrollPane(rightPanel);
            rightPane.setHorizontalScrollBarPolicy(JScrollPane.HORIZONTAL_SCROLLBAR_ALWAYS);
            rightPane.setVerticalScrollBarPolicy(JScrollPane.VERTICAL_SCROLLBAR_ALWAYS);
    
            DefaultMutableTreeNode root = new DefaultMutableTreeNode("main_Tree");
            DefaultMutableTreeNode Branch1 = new DefaultMutableTreeNode("Branch1");
            DefaultMutableTreeNode Leaf1 = new DefaultMutableTreeNode("Leaf1");
            root.add(Branch1);
            Branch1.add(Leaf1);
            DefaultMutableTreeNode Branch2 = new DefaultMutableTreeNode("Branch2");
            DefaultMutableTreeNode Leaf2 = new DefaultMutableTreeNode("Leaf2");
            root.add(Branch2);
            Branch2.add(Leaf2);
            JTree tree = new JTree(root);
            tree.setRootVisible(true);
            tree.setShowsRootHandles(true);
            tree.getSelectionModel().setSelectionMode(TreeSelectionModel.SINGLE_TREE_SELECTION);
    
            tree.addTreeSelectionListener(new TreeSelectionListener()
            {
                public void valueChanged(TreeSelectionEvent se)
                {
                    JTree tree = (JTree) se.getSource();
                    DefaultMutableTreeNode node = (DefaultMutableTreeNode)tree.getLastSelectedPathComponent();
                    if (node == null) return;
                    String nodeInfo = node.toString();
    
                    if (nodeInfo.equals("Leaf1"))
                    {
                        rightPanel = new JPanel();
                        rightPanel.add(label);
                        Main.main_Frame.remove(rightPane);
                        rightPane = new JScrollPane(rightPanel);
                        rightPane.setHorizontalScrollBarPolicy(JScrollPane.HORIZONTAL_SCROLLBAR_ALWAYS);
                        rightPane.setVerticalScrollBarPolicy(JScrollPane.VERTICAL_SCROLLBAR_ALWAYS);
                        Main.main_Frame.add(rightPane, rightGBC);
                        Main.main_Frame.validate();
                        Main.main_Frame.repaint();
                    }
    
                    if (nodeInfo.equals("Leaf2"))
                    {
                        rightPanel = new JPanel();
                        rightPanel.add(Jbt2);
                        Main.main_Frame.remove(rightPane);
                        rightPane = new JScrollPane(rightPanel);
                        rightPane.setHorizontalScrollBarPolicy(JScrollPane.HORIZONTAL_SCROLLBAR_ALWAYS);
                        rightPane.setVerticalScrollBarPolicy(JScrollPane.VERTICAL_SCROLLBAR_ALWAYS);
                        Main.main_Frame.add(rightPane, rightGBC);
                        Main.main_Frame.validate();
                        Main.main_Frame.repaint();
                    }
                }
            });
    
            DefaultTreeCellRenderer renderer = (DefaultTreeCellRenderer) tree.getCellRenderer();
            tree.setRowHeight(30);
    
            renderer.setLeafIcon(new ImageIcon("blue-ball.gif"));
            renderer.setOpenIcon(new ImageIcon("red-ball.gif"));
            renderer.setClosedIcon(new ImageIcon("yellow-ball.gif"));
            renderer.setFont(new Font("Monospaced",Font.BOLD|Font.ITALIC,15));
            renderer.setTextNonSelectionColor(Color.blue);
            renderer.setTextSelectionColor(Color.white);
            renderer.setBackgroundNonSelectionColor(Color.white);
            renderer.setBackgroundSelectionColor(Color.gray);
            renderer.setBorderSelectionColor(Color.lightGray);
    
            leftPanel.add(tree);
    
            add(leftPane, leftGBC);
            add(rightPane, rightGBC);
        }
    
        private JPanel leftPanel;
        private JPanel rightPanel;
        private JScrollPane leftPane;
        private JScrollPane rightPane;
        private GridBagConstraints leftGBC;
        private GridBagConstraints rightGBC;
    
        private JButton Jbt1 = new JButton("Button1");
        private JButton Jbt2 = new JButton("Button2");
    
        private JLabel label = new JLabel("Enter your message below");
        private JTextArea jta = new JTextArea(10,15);
    
        private JButton Jbt3 = new JButton("Button3");
        private JButton Jbt4 = new JButton("Button4");
    }
    
  • How to add the 'new tab' button next to the last tab?... I use version 9.0.1. and they are missing and I can't find how to add.

    I got the new tab next to open tabs button, but with a recent update of Firefox, the tab button disappeared. Went through all the help points, but how do I add the new Help tab is not listed. The only way to open a new tab is manually using the buttons on windows/t or opening the file and choosing the new tab.

    Hello

    It could be that he is hidden behind another icon. Please try this: right click on the empty space after the last tab and Customize.... With the mini window open, you can move the other toolbars and icons to check if the new tab button is hidden. You can also check inside the mini window customize the icon named new tab or click Restore Default Set that will be hopefully restore back. Please note that if nothing is uninstalled or disabled when you click on restore by default, you will have to redo all changes to manual/personal toolbar.

    Customize toolbars

  • Page 1 Page 2 without the navigation pane? (change cancel button)

    Hello..

    as the topic already explained

    How I click key 1 for example and it will again go page 2 without the navigation pane

    If I want to go back to page 1, simply click the Cancel button

    all of this sample code? Thank you

    Hi, I assume that https://developer.blackberry.com/native/reference/cascades/bb__cascades__qmlcontroldelegate.html is your choice.

    There is also an example provided by the developer of bb10 3rd part: http://www.hrbuckley.net/2014/05/segmented-control-option-change.html

  • The user interface related problem: cannot add the status buttons

    Hello

    I'm developing a screen where I need the header and status with controls like buttons and the EditFields. Please take a look at this code

    editField = new EditField();
    
          updateButton = new ButtonField("Update");
    
           cancelButton = new ButtonField("Cancel");
    
          /**        * set up Status manager       */       VerticalFieldManager statusVerManager = new VerticalFieldManager();       HorizontalFieldManager statusManager = new HorizontalFieldManager();
    
            /**        * Add fields in status manager        */       statusManager.add(editField);     statusManager.add(updateButton);      statusManager.add(cancelButton);
    
            statusVerManager.add(new SeparatorField());       statusVerManager.add(statusManager);      /**        * Set status as status manager        */       setStatus(statusVerManager);
    

    Here I can see my edit of the status field but may not see a Cancle and update buttons.

    Previously, I have tried with subLayout() for both the Manager but could not display buttons.

    Waiting for your comments on my code. Atleast help me understand what it is wrong.

    Thanks in advance people.

    Hello

    Solved the problem myself.

    Here's the summary I've done.

    1 removedStatusVerManager. In fact, it has been used only to a separator above the horizontal management of State.

    2 called sublayout inside the statusManager and delimited the height and width.

    3. called setLayOutChild() to do my fiedl edit fixed width and height.

    (I had followed procedure until 3 before I had done new is in step 4)

    4. calls the setPositionChild() method. In fact when I throw a child I have defined his position and the position of all the children who will be added in the same manager. So also set the position of other controls of BROTHER with her.

    5. Add the controls in the Manager.

    He spent setStatus. And I am able to make the desired screen.

    Thank you @ekansh for your answers.

  • Oracle BPEL 2.0 - add the child node

    Hi guys,.

    SOA 11.1.1.7, BPEL 2.0

    I have a child screaming master BPEL BPEL flow flow in a ForEach loop.

    I have part of the answer like this:

    < caseResponses >

    < caseResponse >... < / caseResponse >

    < caseResponse >... < / caseResponse >

    < / caseResponses >

    CaseResponse items come from child BPEL flows.

    I'm trying to add each of these elements in the element parent < caseResponses > but when running I get "The Exception is thrown because the in-specs on the 112 line are assessed to be empty," where the line 112 is the line append.

    My code is:

    < assign the name = "AppendToResponse" >

    < extensionAssignOperation >

    < bpelx: Add >

    < bpelx: go > $InvokeHandleSingleCarglassCase_process_OutputVariable.payload / ns1:caseResponse < / bpelx: go >

    < bpelx: to > $outputVariable.payload / client: caseResponses < / bpelx: to >

    < / bpelx: Add >

    < / extensionAssignOperation >

    < / assign >

    If I add a copy - just like a test rule-

    < assign the name = "AppendToResponse" >

    < copy >

    < a > $InvokeHandleSingleCarglassCase_process_OutputVariable.payload / ns1:caseResponse < / from >

    < to > $outputVariable.payload/client:caseResponses/client:caseResponse < /pour >

    < / copy >

    < extensionAssignOperation >

    < bpelx: Add >

    < bpelx: go > $InvokeHandleSingleCarglassCase_process_OutputVariable.payload / ns1:caseResponse < / bpelx: go >

    < bpelx: to > $outputVariable.payload / client: caseResponses < / bpelx: to >

    < / bpelx: Add >

    < / extensionAssignOperation >

    < / assign >

    I works as expected: all caseResponse items are added and there is also one more copy activity.

    What can I do so that I don't get the "The Exception is thrown because the in-specs on the 112 line are assessed to be empty" exception without copy assign?

    Thank you!

    By the way

    Rather than add it, you can use the copy, but instead of the normal copy you must change the code a bit to something like:

    $InvokeHandleSingleCarglassCase_process_OutputVariable.payload / ns1:caseResponse

    $outputVariable.payload / client: caseResponses[$ForEachCounter]/ client: caseResponse

    If you add the counter and checks that I wrote in the previous answer basically it will create a node at position x (x being the value of the counter) and the copy of your result

Maybe you are looking for