Example: Consuming Form Interconnect Values

if (formDataStructure != null && formDataStructure.getMembers() != null)
{     
      E1DataStructureMember member = formDataStructure.getMember(4);
      String alphaName = null;
      try
      {
            if (member != null)
            {
                  alphaName = member.getValue(String.class);
            }
      }
      catch (ClassCastException e)
      {
            //handle the exception
      }
}

Form interconnect values are only passed if the calling application or Composite Application Framework layout is configured to pass values to the ADF application. Only the values mapped in the call to the external form will be included in the formDataStructure member list in ADF. So you must provide null checking in case an expected value is not there. Only call the getValue() method on an E1DataStructureMember that is not null.