Solved

Java imports failing

  • 15 March 2024
  • 3 replies
  • 38 views

Userlevel 5
Badge +16

The following imports:

import commvault.cte.workflow.activities.HttpClient;
import commvault.cte.workflow.types.WebRequest;
import commvault.cte.workflow.types.NameValue;
import commvault.cte.workflow.types.WebMethod;

Produces the following:

Script1.groovy: 8: unable to resolve class commvault.cte.workflow.types.WebRequest
@ line 8, column 1.
import commvault.cte.workflow.types.WebRequest;
^

Script1.groovy: 9: unable to resolve class commvault.cte.workflow.types.NameValue
@ line 9, column 1.
import commvault.cte.workflow.types.NameValue;
^

Script1.groovy: 10: unable to resolve class commvault.cte.workflow.types.WebMethod
@ line 10, column 1.
import commvault.cte.workflow.types.WebMethod;
^

 

icon

Best answer by christopherlecky 19 March 2024, 15:31

View original

3 replies

Userlevel 6
Badge +14

Hi @christopherlecky 

Which version are you using?

Which Workflow and version is this?

Best Regards,

Sebastien

Userlevel 5
Badge +16

11.28,

 

Home cooked workflow. I just need to resolve those methods.

Userlevel 5
Badge +16

Ended up replacing it with basic java httpclient.

 

import java.net.http.HttpClient;
import java.net.http.HttpRequest;
import java.net.http.HttpResponse;

 

Reply