Creo™ Schematics 4.0 Help Center > Customizing Creo Schematics Using Java APIs > Example: Syntax to Call Java from Reports
  
Example: Syntax to Call Java from Reports
public class ExampleClass
{
public static String reportMethod(Artifact artifact, String par1)
{
return "Received artifact with text " + par1;
}
}
The correct syntax to call the method reportMethod is:
{ExampleClass.reportMethod(text1)}
* 
The call specifies only one parameter. This is because the first parameter in report functions (the artifact) is inserted in the call to the method.