Hi, folks
My problem is the next:
I have this code in C#:
try
{
IDfCollection Workflows = session.getRunnableProcesses("");
while (Workflows.next()) {
IDfId id = Workflows.getId("r_object_id");
IDfValue id2 = Workflows.getValue("object_name");
if (id2.asString().Equals(PROCESO)) {
IDfWorkflowBuilder workflowBuilder = session.newWorkflowBuilder(id);
IDfId initWf = workflowBuilder.initWorkflow();
IDfWorkflow setVariables = (IDfWorkflow)session.getObject(initWf);
setVariables.setBoolean("Extemporaneo", Extemporaneo);
setVariables.setString("NumeroCasoVehiculo", NumeroCasoVehiculo);
setVariables.setBoolean("VehiculoenTaller", VehiculoenTaller);
setVariables.setInt("NumAjuste", numAjuste);
setVariables.setBoolean("EsAjuste", esAjuste);
setVariables.setBoolean("PerdidaTotalRobo", perdidaTotalRobo);
IDfId idWf = workflowBuilder.runWorkflow();
return idWf; }
}
throw new Exception("No se encontro el proceso " + PROCESO);}
catch (Exception){
throw;
}
but to run it, I get the following error message:
DfTypedObjectException:: THREAD: main; MSG: [DM_API_E_BADATTRNAME]error: "Bad attribute name 'Extemporaneo' for document/object."; ERRORCODE: 100; NEXT: null:DfTypedObjectException:: THREAD: main; MSG: [DM_API_E_BADATTRNAME]error: "Bad attribute name 'Extemporaneo' for document/object."; ERRORCODE: 100; NEXT: null
at com.documentum.fc.client.impl.typeddata.LiteType.getAttr(LiteType.java:170)
at com.documentum.fc.client.impl.typeddata.AbstractTypedData.setString(AbstractTypedData.java:290)
at com.documentum.fc.client.DfTypedObject.setStringInternal(DfTypedObject.java:1477)
at com.documentum.fc.client.DfTypedObject.setStringRaw(DfTypedObject.java:1463)
at com.documentum.fc.client.DfTypedObject.doSetString(DfTypedObject.java:1445)
at com.documentum.fc.client.DfTypedObject.setString(DfTypedObject.java:1418)
at com.documentum.fc.client.DfTypedObject.setBoolean(DfTypedObject.java:1099)
at com.documentum.fc.client.DfWorkflow___PROXY.setBoolean(DfWorkflow___PROXY.java)
What´s going up in this ****'in code??? please I need your help, urgently.
I will very grateful
Thanks.