CMDBuild Forum

Can't create Report in Workflow

Hello,

i just created a simple workflow that should create a report.

I set a start and end activity and a taskscript that executes the following code:

newReport = cmdb.createReport("Test").download();

if i try to start the workflow following error occures:

Error: org.cmdbuild.workflow.CMWorkflowException: org.enhydra.shark.api.internal.toolagent.ToolAgentGeneralException: Sourced file: eval stream : Error in method invocation: Method createReport( java.lang.String ) not found in class'org.cmdbuild.workflow.api.WorkflowApi'

did i forget something important?

 

thanks

nick

sorry, problem solved, i forgot one parameter while calling the function

 

Previously Nick wrote:

Hello,

i just created a simple workflow that should create a report.

I set a start and end activity and a taskscript that executes the following code:

newReport = cmdb.createReport("Test").download();

if i try to start the workflow following error occures:

Error: org.cmdbuild.workflow.CMWorkflowException: org.enhydra.shark.api.internal.toolagent.ToolAgentGeneralException: Sourced file: eval stream : Error in method invocation: Method createReport( java.lang.String ) not found in class'org.cmdbuild.workflow.api.WorkflowApi'

did i forget something important?

 

thanks

nick

 

Hello

 
Here is example from workflow manual:
 
Example: 
/* * It generated the Report “DismissedAssets” which shows the list * of the abandoned Assets */ 
newReport = cmdb.createReport(“Assigned assets to”) .download();
 
where i can define what report from "reports" i want to use?
String parameter is “Assigned assets to”, but example description says report “DismissedAssets”
Okey, I got this in shark.log:
Target exception: java.lang.IllegalArgumentException: missing report for type 'custom' and title 'report2'
 
but I have report with Code and Description 'report2'
 
Previously Alex wrote:
Hello
 
Here is example from workflow manual:
 
Example: 
/* * It generated the Report “DismissedAssets” which shows the list * of the abandoned Assets */ 
newReport = cmdb.createReport(“Assigned assets to”) .download();
 
where i can define what report from "reports" i want to use?
String parameter is “Assigned assets to”, but example description says report “DismissedAssets”