0 Replies Latest reply on Jun 5, 2014 5:07 AM by akoskm

    Accessing WorkItem parameters

    akoskm Newbie

      Today this strange thing happened to me:

      Code:

      System.out.println(item.getParameters());
       final String verLinkTextDirect = (String) item.getParameters().get("Link Text");
       System.out.println(verLinkTextDirect);
       final Object verLinkTexto = item.getParameter("Link Text");
       System.out.println(verLinkTexto);
      

      Output:

      {Rejected Message=Document Rejected., Link Text=asdasd, Approve Button=Approve, Style=.myclass{ font-color: red}, Reject Button=Reject}
      asdasd
      null
      

      Am I missing something or there is an implementation detail of item.getParameter what I don't know?