Error al subir un documento en Alfresco usando la API de PHP

cancel
Showing results for 
Search instead for 
Did you mean: 
yayo_1231
Member II

Error al subir un documento en Alfresco usando la API de PHP

Hola amigos:

Estoy intentando subir un documento generado para Alfresco, pero a diferencia de los ejemplos básicos, yo tengo que crear un nodo que no sea del tipo cm_content, sino uno hecho especial para mi trabajo que tienen unas propiedades que necesito que tenga el documento. El método trabaja a medias, es decir, me llega a crear el nodo con las propiedades que debe tener el documento, pero no me llega a subir el documento. A continuación les pongo e lmétodo creado para subir el documento y también les voy a publicar el xml donde se especifica el nuevo tipo de nodo.

Método para subir archivos:

public function CrearOrdenTrabajo($arreglo){
      $bandera = false;
      $node = false;
      $nombre_documento = $this->EscribirEnPlantilla($arreglo);
      if($session = $this->AutenticarAlfresco())
      {
         $dir_index = $_SERVER['SCRIPT_FILENAME'];
         $ruta = substr($dir_index, 0, strrpos($dir_index, 'aplicaciones')). 'aplicaciones/sigac/integracion/comun';
         if($session != ''){
            $spacesStore = new SpacesStore($session);
            $consulta = 'PATH:"app:company_home/cm:Ordenes_x0020_de_x0020_Trabajo"';
            $result = $session->query($spacesStore, $consulta);
            $node = $result[0];
            if(!empty($node)) {
               try {
                  $file_ruta   = $ruta.'/'.$nombre_documento;
                  $Nodo        = $node->createChild('mac_ot', 'cm_contains', 'mac_'.$nombre_documento);            
                  $contentData = new ContentData($Nodo, 'mac:ot');
                  $Nodo->cm_name = $nombre_documento;
                  $Nodo->cm_title    = 'Orden de Trabajo';                  
                  $contentData->encoding   = 'UTF-8';
                  $contentData->mimetype  = 'application/msword';
                        $Nodo->mac_planificada   = true;
                        $Nodo->mac_idac = $arreglo['idac'];   
                  $contentData->writeContentFromFile($file_ruta);
                  $Nodo->mac_ot = $contentData;
                  $session->save();
                  unlink($file_ruta);
                  $bandera = true;
               }
               catch (SoapFault $e){ throw new ZendExt_Exception('INT005',$e);   
               }
            }
         }
      }
      return $bandera;
   }

Ahora viene el scModel.xml  donde se especifica el nuevo tipo de nodo:


<?xml version="1.0" encoding="ISO-8859-1"?>

<!– Definition of new Model –>

<model name="mac:somecomodel" xmlns="http://www.alfresco.org/model/dictionary/1.0">

<!– Optional meta-data about the model –>

   <description>Modelo MAC</description>

      <author>Rangel Hurtados Diaz(Villa Clara)</author>

      <version>1.0</version>

   <!– Imports are required to allow references to definitions in other models –>

      <imports>

   <!– Import Alfresco Dictionary Definitions –>

         <import uri="http://www.alfresco.org/model/dictionary/1.0" prefix="d" />

   <!– Import Alfresco Content Domain Model Definitions –>

         <import uri="http://www.alfresco.org/model/content/1.0"   prefix="cm" />

      </imports>

   <!– Introduction of new namespaces defined by this model –>

   <namespaces>

      <namespace uri="http://www.someco.com/model/content/1.0" prefix="mac" />

   </namespaces>

   <constraints>

      <!–aplicar con reglas–>

      <constraint name="mac:tiposdeAC" type="LIST">

         <parameter name="allowedValues">

         <list>

            <value>Auditoria Especial</value>

            <value>Auditoria Financiera</value>

            <value>Auditoria Fiscal</value>

            <value>Auditoria de Gestion</value>

            <value>Auditoria de Cumplimiento</value>

            <value>Auditoria a las TIC</value>

            <value>Comprobacion Especiales</value>

            <value>Control Gubernamental</value>

            <value>Fiscalizacion</value>

            <value>Inspeccion Gubernamental</value>

            <value>Visita de Supervision</value>

            <value>Recontrol</value>

         </list>

         </parameter>

      </constraint>

      <constraint name="mac:accionesDACE" type="LIST">

         <parameter name="allowedValues">

         <list>

            <value>Auditoria Especial</value>

            <value>Auditoria Financiera</value>

            <value>Auditoria Fiscal</value>

            <value>Auditoria de Gestion</value>

            <value>Auditoria de Cumplimiento</value>

            <value>Auditoria a las TIC</value>

            <value>Comprobacion Especial</value>            

            <value>Fiscalizacion</value>

         </list>

         </parameter>

      </constraint>

      <constraint name="mac:accionesDAG" type="LIST">

         <parameter name="allowedValues">

         <list>            

            <value>Auditoria Financiera</value>

            <value>Auditoria Fiscal</value>

            <value>Auditoria de Gestion</value>

            <value>Auditoria de Cumplimiento</value>

            <value>Auditoria a las TIC</value>            

            <value>Visita de Supervision</value>                        

         </list>

         </parameter>

      </constraint>

      <constraint name="mac:accionesDCG" type="LIST">

         <parameter name="allowedValues">

         <list>            

            <value>Control Gubernamental</value>            

            <value>Inspeccion Gubernamental</value>            

            <value>Recontrol</value>

         </list>

         </parameter>

      </constraint>

      <constraint name="mac:provincias" type="LIST">

         <parameter name="allowedValues">

         <list>            

            <value>Pinar del Rio</value>

            <value>Isla de la Juventud</value>   

            <value>La Habana</value>            

            <value>Ciudad de La Habana</value>

            <value>Matanzas</value>         

            <value>Cienfuegos</value>            

            <value>Villa Clara</value>

            <value>Ciego de Avila</value>

            <value>Sancti Spiritus</value>   

            <value>Camaguey</value>   

            <value>Holguin</value>                     

            <value>Las Tunas</value>            

            <value>Santiago de Cuba</value>

            <value>Granma</value>            

            <value>Guantanamo</value>            

         </list>

         </parameter>

      </constraint>

      

      <constraint name="mac:calificaciones" type="LIST">

         <parameter name="allowedValues">

         <list>            

            <value>M</value>

            <value>B</value>   

            <value>R</value>            

            <value>P</value>

            <value>D</value>         

            <value>A</value>            

         </list>

         </parameter>

      </constraint>

      

      <constraint name="mac:municipios" type="LIST">

         <parameter name="allowedValues">

         <list>            

            <value>Playa</value>

            <value>Plaza de la Revolucion</value>   

            <value>Centro Habana</value>            

            <value>La Habana Vieja</value>

            <value>Regla</value>         

            <value>La Habana del Este</value>            

            <value>Guanabacoa</value>

            <value>San Miguel</value>                                    

         </list>

         </parameter>

      </constraint>

      <constraint name="mac:tiposdeInformeDACE" type="LIST">

         <parameter name="allowedValues">

         <list>

            <value>Preliminar</value>

            <value>Final</value>   

         </list>

         </parameter>

      </constraint>

      <constraint name="mac:tiposdeInformeDAG" type="LIST">

         <parameter name="allowedValues">

         <list>

            <value>Final</value>   

         </list>

         </parameter>

      </constraint>

      <constraint name="mac:tiposdeInformeDCG" type="LIST">

         <parameter name="allowedValues">

         <list>

            <value>Parcial de Controladores</value>

            <value>Resumen</value>

            <value>Cumplimiento del Plan</value>         

         </list>

         </parameter>

      </constraint>

      <constraint name="mac:tiposdeActaDACE" type="LIST">

         <parameter name="allowedValues">

         <list>

            <value>Notificacion de Resultados</value>               

         </list>

         </parameter>

      </constraint>

      <constraint name="mac:tiposdeActaDAG" type="LIST">

         <parameter name="allowedValues">

         <list>

            <value>por ver</value> <!– por ver –>               

         </list>

         </parameter>

      </constraint>

      <constraint name="mac:tiposdeActaDCG" type="LIST">

         <parameter name="allowedValues">

         <list>

            <value>parecen no haber</value> <!– parecen no haber –>               

         </list>

         </parameter>

      </constraint>

      

      <constraint name="mac:centros" type="LIST">

         <parameter name="allowedValues">

         <list>                     

            <value>UNIDAD MUNICIPAL DE APOYO A LA ACTIVIDAD CULTURAL</value>            

            <value>CENTRO PROVINCIAL DE LA MUSICA</value>   

            <value>UNIDAD PROVINCIAL DE APOYO A LA ACTIVIDAD CULTURAL</value>   

            <value>UNIDAD PRESUPUESTADA MUNICIPAL SALUD PUBLICA</value>

            <value>UNIDAD PRESUPUESTADA HOSPITAL GENERAL CARLOS MANUEL DE CESPEDES</value>

            <value>UNIDAD PRESUPUESTADA PROVINCIAL DE DEPORTES</value>

            <value>CENTRO PROVINCIAL DE HIGIENE Y EPIDEMIOLOGIA</value>            

         </list>

         </parameter>

      </constraint>

      <constraint name="mac:controladoresDCG" type="LIST">

         <parameter name="allowedValues">

         <list>                     

            <value>MEP</value>            

            <value>MINCIN</value>   

            <value>MITRANS</value>   

            <value>INRE</value>

            <value>MICONS</value>

            <value>MFP</value>

            <value>CUPET</value>            

         </list>

         </parameter>

      </constraint>

      <constraint name="mac:tiposDeEntidad" type="LIST">

         <parameter name="allowedValues">

         <list>

            <value>OACE</value>               

            <value>CAP</value>               

            <value>Entidad Nacional</value>               

         </list>

         </parameter>

      </constraint>

      <constraint name="mac:EntidadDCG" type="LIST">

         <parameter name="allowedValues">

         <list>

            <value>CAP Pinar del Rio</value>

            <value>CAP Isla de la Juventud</value>   

            <value>CAP La Habana</value>            

            <value>CAP Ciudad de La Habana</value>

            <value>CAP Matanzas</value>         

            <value>CAP Cienfuegos</value>            

            <value>CAP Villa Clara</value>

            <value>CAP Ciego de Avila</value>

            <value>CAP Sancti Spiritus</value>   

            <value>CAP Camaguey</value>   

            <value>CAP Holguin</value>                     

            <value>CAP Las Tunas</value>            

            <value>CAP Santiago de Cuba</value>

            <value>CAP Granma</value>            

            <value>CAP Guantanamo</value>            

            <value>MEP</value>            

            <value>MINCIN</value>   

            <value>MITRANS</value>   

            <value>INRE</value>

            <value>MICONS</value>

            <value>MFP</value>

            <value>CUPET</value>            

         </list>

         </parameter>

      </constraint>

   </constraints>

   <types><!– Tipos de documentos –>

      <type name="mac:elaboracion_directorio">

         <title>Elaboracion del Directorio</title>

         <parent>mac:docPadre</parent>   

         <properties>

            <property name="mac:nomb_e">

               <title>Numero</title>

               <type>d:text</type>

            </property>   

            <property name="mac:reeup">

                <title>REEUP</title>

               <type>d:text</type>

            </property>   

            <property name="mac:nom_identidad">

               <title>Nombre de la Entidad</title>

               <type>d:text</type>

            </property>

            <property name="mac:subd">

               <title>Subordinada</title>

               <type>d:text</type>

            </property>

            <property name="mac:org_inter_direccion">

               <title>Organizacion Intermedia Direccion</title>

               <type>d:text</type>

            </property>

            <property name="mac:munpio">

               <title>Municipio</title>

               <type>d:text</type>

            </property>

            <property name="mac:provncia">

               <title>Provincia</title>

               <type>d:text</type>

            </property>

            <property name="mac:nadirector">

               <title>Nombre y Apellidos del Director</title>

               <type>d:text</type>

            </property>

            <property name="mac:email">

               <title>Correo Electronico</title>

               <type>d:text</type>

            </property>

            <property name="mac:telefono">

               <title>Telefono</title>

               <type>d:text</type>

            </property>

            <property name="mac:Direccion_Oficial">

               <title>Direccion Oficial</title>

               <type>d:text</type>

            </property>



         </properties>            

</type>

       <type name="mac:Cronograma_Inspecciones_Gubernamentales">

         <title>Cronograma de Inspecciones Gubernamentales</title>

         <parent>mac:docPadre</parent>   

         <properties>

            <property name="mac:gladys_informa_al_ministro">

               <title>Gladys informa al Ministro</title>

               <type>d:text</type>

            </property>   

            <property name="mac:La_ DCG_ informa_a_ los_ inspectores">

                <title>La DCG informa a los inspectores</title>

               <type>d:text</type>

            </property>   

            <property name="mac:cont_DCG_iden">

               <title>Contacto del DCG con la Identidad</title>

               <type>d:text</type>

            </property>

            <property name="mac:reui">

               <title>Reunion Inicial</title>

               <type>d:text</type>

            </property>

            <property name="mac:ej">

               <title>Ejecucion</title>

               <type>d:text</type>

            </property>

            <property name="mac:rec_info_inspectores">

               <title>Recibir el Informe de los Inspectores</title>

               <type>d:text</type>

            </property>

            <property name="mac:di">

               <title>Despacho con los Inspectores</title>

               <type>d:text</type>

            </property>

            <property name="mac:eidcg">

               <title>Elaboracion de informe por las DCG</title>

               <type>d:text</type>

            </property>

            <property name="mac:eaya">

               <title>Entrega a Amando y arreglos</title>

               <type>d:text</type>

            </property>

            <property name="mac:egladys">

               <title>Entrega a Gladys</title>

               <type>d:text</type>

            </property>

            <property name="mac:reunion">

               <title>Reunion previa con el director de la entidad con el  informe Resumen</title>

               <type>d:text</type>

            </property>

            <property name="mac:r">

               <title>Reproducion</title>

               <type>d:text</type>

            </property>

            <property name="mac:Distribucion">

               <title>Distribucion</title>

               <type>d:text</type>

            </property>

            <property name="mac:concl">

               <title>Concluciones</title>

               <type>d:text</type>

            </property>

            <property name="mac:Recibir_pm">

               <title>Recibir el plan de medidas</title>

               <type>d:text</type>

            </property>



         </properties>            

</type>

   

      <type name="mac:Elaboracion_del_Plan_de_medidas">

         <title>Elaboracion del Plan de Medidas</title>

         <parent>mac:docPadre</parent>   

         <properties>

            <property name="mac:n">

               <title>Numero</title>

               <type>d:text</type>

            </property>   

            <property name="mac:def_i">

                <title>Deficiencias</title>

               <type>d:text</type>

            </property>   

            <property name="mac:nv">

               <title>Normas violadas</title>

               <type>d:text</type>

            </property>

            <property name="mac:cc">

               <title>Causas y Condiciones</title>

               <type>d:text</type>

            </property>

            <property name="mac:no">

               <title>Numero</title>

               <type>d:text</type>

            </property>

            <property name="mac:med">

               <title>Medidas</title>

               <type>d:text</type>

            </property>

            <property name="mac:res">

               <title>Responsable</title>

               <type>d:text</type>

            </property>

            <property name="mac:EJE">

               <title>Ejecutante</title>

               <type>d:text</type>

            </property>

            <property name="mac:Fecha">

               <title>Fecha de Cumplimiento</title>

               <type>d:text</type>

            </property>

            

      </properties>            

</type>

      

      <type name="mac:Parte_Diario">

         <title>Parte Diario</title>

         <parent>mac:docPadre</parent>   

         <properties>

            <property name="mac:f">

               <title>Fecha</title>

               <type>d:datetime</type>

            </property>   

            <property name="mac:v">

                <title>Visitas Recibidas</title>

               <type>d:text</type>

            </property>   

            <property name="mac:cd">

               <title>Cantidad de deficiencias</title>

               <type>d:text</type>

            </property>

            <property name="mac:vaf">

               <title>Visitas acumuladas hasta fecha</title>

               <type>d:text</type>

            </property>

            <property name="mac:ir">

               <title>Incidencias Reportadas</title>

               <type>d:text</type>

            </property>

            <property name="mac:ps">

               <title>Principales Sennalamientos</title>

               <type>d:text</type>

            </property>

      </properties>            

</type>

   

      <type name="mac:planilla_informe_controladores">

         <title>Planilla de Informe de Controladores</title>

         <parent>mac:docPadre</parent>   

         <properties>

            <property name="mac:nomboc">

               <title>Nombre de la Organizacion Controladora</title>

               <type>d:text</type>

            </property>   

            <property name="mac:ngc">

                <title>Numero del grupo coordinador</title>

               <type>d:text</type>

            </property>   

            <property name="mac:coe">

               <title>Cumplimiento de Objetivos Especificos</title>

               <type>d:text</type>

            </property>

            <property name="mac:ev_cant_plan">

               <title>(Entidades Visitadas)Cantidad del Plan</title>

               <type>d:text</type>

            </property>

            <property name="mac:ev_cant_real">

               <title>(Entidades Visitadas)Cantidad Real</title>

               <type>d:text</type>

            </property>

            <property name="mac:ev_Nombre">

               <title>(Entidades Visitadas)Nombre</title>

               <type>d:text</type>

            </property>

            <property name="mac:eav_Prov">

               <title>(Entidades Visitadas)Provincia</title>

               <type>d:text</type>

            </property>

            <property name="mac:ev_Muni">

               <title>(Entidades Visitadas)Municipio</title>

               <type>d:text</type>

            </property>

            <property name="mac:def_cant">

               <title>(Deficiencias)Cantidad</title>

               <type>d:text</type>

            </property>

            <property name="mac:def_res">

               <title>(Deficiencias)Resumen</title>

               <type>d:text</type>

            </property>

            <property name="mac:def_ae">

               <title>(Deficiencias)Afectos Economicos</title>

               <type>d:text</type>

            </property>

            <property name="mac:def_sin">

               <title>(Deficiencias)Sintesis</title>

               <type>d:text</type>

            </property>

            <property name="mac:ccon">

               <title>Causas y Condiciones</title>

               <type>d:text</type>

            </property>

            <property name="mac:coc">

               <title>Criterio Organizador Controlador</title>

               <type>d:text</type>

            </property>

            <property name="mac:nombac">

               <title>Nombre y Apellidos del Controlador</title>

               <type>d:text</type>

            </property>

      </properties>            

    </type>

      

      

      <type name="mac:planilla_informe_resumen">

         <title>Planilla de Informe de resumen de inspecciones</title>

         <parent>mac:docPadre</parent>   

         <properties>

            <property name="mac:noc">

               <title>Nombre de la Organizacion Controladora</title>

               <type>d:text</type>

            </property>   

            <property name="mac:fe">

                <title>Fecha de Envio</title>

               <type>d:datetime</type>

            </property>   

            <property name="mac:nev">

               <title>Nombre de la Entidad Visitada</title>

               <type>d:text</type>

            </property>

            <property name="mac:nac">

               <title>Nombre de la Actividad Controlada</title>

               <type>d:text</type>

            </property>

            <property name="mac:cop">

               <title>Cumplimiento de los Objetivos Previstos</title>

               <type>d:text</type>

            </property>

            <property name="mac:ev_prov">

               <title>(Entidades Visitadas)Provincia</title>

               <type>d:text</type>

            </property>

            <property name="mac:ev_mu">

               <title>(Entidades Visitadas)Municipio</title>

               <type>d:text</type>

            </property>

            <property name="mac:defi_cant">

               <title>(Deficiencias)Cantidad</title>

               <type>d:text</type>

            </property>

            <property name="mac:def_resumen">

               <title>(Deficiencias)Resumen</title>

               <type>d:text</type>

            </property>

            <property name="mac:def_afe">

               <title>(Deficiencias)Afectos Economicos</title>

               <type>d:text</type>

            </property>

            <property name="mac:def_sint">

               <title>(Deficiencias)Sintesis</title>

               <type>d:text</type>

            </property>

            <property name="mac:ccond">

               <title>Causas y Condiciones</title>

               <type>d:text</type>

            </property>

            <property name="mac:cocont">

               <title>Criterio Organizador Controlador</title>

               <type>d:text</type>

            </property>

            <property name="mac:nacont">

               <title>Nombre y Apellidos del Controlador</title>

               <type>d:text</type>

            </property>

      </properties>            

</type>



      <type name="mac:Certificacion">

         <title>Certifico para la entrega de los informes del control Gubernamental</title>

         <parent>mac:docPadre</parent>   

         <properties>

            <property name="mac:ob">

               <title>Objetivo</title>

               <type>d:text</type>

            </property>   

            <property name="mac:a">

                <title>Alcance</title>

               <type>d:text</type>

            </property>   

            <property name="mac:d">

               <title>Distribucion</title>

               <type>d:text</type>

            </property>

            <property name="mac:i">

               <title>Instrucciones</title>

               <type>d:text</type>

            </property>

            <property name="mac:duo">

               <title>Datos de uso obligatorio</title>

               <type>d:text</type>

            </property>

            

      </properties>            

</type>



      <type name="mac:Cronograma_General_de_Identidades_a_Visitar">

         <title>Cronograma General de Identidades a Visitar</title>

         <parent>mac:docPadre</parent>   

         <properties>

            <property name="mac:or_c">

               <title>Organismo Controlador</title>

               <type>d:text</type>

            </property>   

            <property name="mac:g">

                <title>Grupo</title>

               <type>d:text</type>

            </property>   

            <property name="mac:n_e">

               <title>Nombre de la Entidad</title>

               <type>d:text</type>

            </property>

            <property name="mac:cr">

               <title>Codigo Reeup</title>

               <type>d:text</type>

            </property>

            <property name="mac:Sub_entidad">

               <title>Sub entidad</title>

               <type>d:text</type>

            </property>

            <property name="mac:Subordinada">

               <title>Subordinada:</title>

               <type>d:text</type>

            </property>

            <property name="mac:fi">

               <title>Fecha de inicio de visita</title>

               <type>d:text</type>

            </property>

            <property name="mac:ff">

               <title>fecha de fin de visita</title>

               <type>d:text</type>

            </property>

            <property name="mac:hv">

               <title>Hora de Visita</title>

               <type>d:text</type>

            </property>

            <property name="mac:p">

               <title>Provincia</title>

               <type>d:text</type>

            </property>

            <property name="mac:m">

               <title>Municipio</title>

               <type>d:text</type>

            </property>

      </properties>            

</type>



      <type name="mac:programa_activi_control">

         <title>PROGRAMA DE LAS PRINCIPALES ACTIVIDADES DE CONTROL Y RECONTROL  GUBERNAMENTALES</title>

         <parent>mac:docPadre</parent>   

         <properties>

            <property name="mac:ri">

               <title>Reunión Informativa</title>

               <type>d:text</type>

            </property>   

            <property name="mac:epog">

                <title>Elaboracion de Propuestas de Objetivos Generales</title>

               <type>d:text</type>

            </property>   

            <property name="mac:ccg">

               <title>Convocatoria del Control Gubernamental</title>

               <type>d:text</type>

            </property>

            <property name="mac:reca">

               <title>Recepcion de entidades a controlar apertura de los  objetivos generales</title>

               <type>d:text</type>

            </property>

            <property name="mac:edoe">

               <title>Elaboracion de documento con objetivos especificos y  entidades a visitas</title>

               <type>d:text</type>

            </property>

            <property name="mac:iod">

               <title>Informar los objetivos detallados</title>

               <type>d:text</type>

            </property>

            <property name="mac:et">

               <title>Ejecucion en el terreno</title>

               <type>d:text</type>

            </property>

            <property name="mac:s">

               <title>Supervision(a seleccionar dia)</title>

               <type>d:text</type>

            </property>

            <property name="mac:eicg">

               <title>Entrega de Informe por los Controladores de  Grupo</title>

               <type>d:text</type>

            </property>

            <property name="mac:dcg">

               <title>Despacho con los Coordinadores de Grupo</title>

               <type>d:text</type>

            </property>

            <property name="mac:rad">

               <title>Recepcion y Ajustes del Despacho</title>

               <type>d:text</type>

            </property>

            <property name="mac:eli">

               <title>Elaboracion del Informe</title>

               <type>d:text</type>

            </property>

            <property name="mac:eaa">

               <title>Entrega a Amado</title>

               <type>d:text</type>

            </property>

            <property name="mac:aa">

               <title>Ajustes de Amado</title>

               <type>d:text</type>

            </property>

            <property name="mac:eg">

               <title>Entrega a Gladys</title>

               <type>d:text</type>

            </property>

            <property name="mac:agl">

               <title>Ajustes de Gladys</title>

               <type>d:text</type>

            </property>

            <property name="mac:vic">

               <title>Ver Informe con el Controlado</title>

               <type>d:text</type>

            </property>

            <property name="mac:rDCG">

               <title>Reproduccion del DCg Y entrega del OCIC</title>

               <type>d:text</type>

            </property>

            <property name="mac:cdO">

               <title>Clasificacion y distribucion del OCIC</title>

               <type>d:text</type>

            </property>

            <property name="mac:rc">

               <title>Reunion de Concluciones</title>

               <type>d:text</type>

            </property>

            <property name="mac:rpm">

               <title>Recibir el Plan de Medidas</title>

               <type>d:text</type>

            </property>

            <property name="mac:ridcon">

               <title>Recibir informe de los controladores</title>

               <type>d:text</type>

            </property>

            <property name="mac:edeinf">

               <title>Elaboracion del Informe</title>

               <type>d:text</type>

            </property>

            <property name="mac:eaarr">

               <title>Entrega a Armando y  arreglos</title>

               <type>d:text</type>

            </property>

            <property name="mac:egyar">

               <title>Entrega Gladys y arreglos</title>

               <type>d:text</type>

            </property>

            <property name="mac:reproDCG">

               <title>Reproduccion del DCG y entrega OCIC</title>

               <type>d:text</type>

            </property>

            <property name="mac:cydOCIC">

               <title>Clasificacion y distibucion OCIC</title>

               <type>d:text</type>

            </property>

            <property name="mac:reu_concl">

               <title>Reunion de Conclusines</title>

               <type>d:text</type>

            </property>

      </properties>            

</type>



      

         <type name="mac:Cronograma_planificacion_anual_controles_gubernamentales">

         <title>Planilla de Informe de resumen de inspecciones</title>

         <parent>mac:docPadre</parent>   

         <properties>

            <property name="mac:nombre">

               <title>Nombre de OACE,Entidad Nacional o CAP</title>

               <type>d:text</type>

            </property>   

            <property name="mac:fini">

                <title>Fecha de Inicio</title>

               <type>d:datetime</type>

            </property>   

            <property name="mac:ffin">

               <title>Fecha de Fin</title>

               <type>d:text</type>

            </property>

            <property name="mac:act">

               <title>Actividad</title>

               <type>d:text</type>

            </property>

          </properties>            

            </type>

         

      <type name="mac:docPadre">

         <title>Tipo Abstracto</title>

         <parent>cm:content</parent>         

      </type>         

      <type name="mac:docsDependientes">

         <title>Acta o Informe</title>

         <parent>mac:docPadre</parent>      

      </type>

      <type name="mac:ot">

         <title>Orden de Trabajo</title>

         <parent>mac:docPadre</parent>   

         <properties>

            <property name="mac:comienzo">

               <title>Fecha de comienzo</title>

               <type>d:date</type>

            </property>   

            <property name="mac:planificada">

                <title>Planificada?</title>

               <type>d:boolean</type>

               <default>false</default>

            </property>   

            <property name="mac:fin">

               <title>Fecha de fin</title>

               <type>d:date</type>

            </property>

            <property name="mac:phd">

               <title>Cantidad de presunto hechos delectivos</title>

               <type>d:int</type>

            </property>

            <property name="mac:phc">

               <title>Cantidad de presunto hechos de corrupción</title>

               <type>d:int</type>

            </property>

            <property name="mac:taecup">

               <title>Total de afectación económica en CUP</title>

               <type>d:float</type>

            </property>

            <property name="mac:idac">

               <title>Identificador de Acciones de control</title>

               <type>d:text</type>

            </property>

            <property name="mac:taecuc">

               <title>Total de afectación económica en CUC</title>

               <type>d:float</type>

            </property>

            <property name="mac:respons">

               <title>Responsable</title>

               <type>d:text</type>

            </property>

            <property name="mac:califs">

               <title>Calificación</title>

               <type>d:text</type>

               <multiple>false</multiple>

               <constraints>

                  <constraint ref="mac:calificaciones" />

               </constraints>

            </property>

         </properties>            

         <associations>

            <association name="mac:docsAsociados">

               <title>Asociar Documentos</title>

               <source>

                  <mandatory>true</mandatory>

                  <many>true</many>

               </source>

               <target>

                  <class>mac:docPadre</class>

                  <mandatory>false</mandatory>

                  <many>true</many>                  

               </target>

            </association>

         </associations>      

         <mandatory-aspects>

            <aspect>cm:generalclassifiable</aspect>

         </mandatory-aspects>

      </type>

      <type name="mac:acta">

         <title>Acta</title>

         <parent>mac:docsDependientes</parent>   

      </type>

      <type name="mac:informe">

         <title>Informe</title>

         <parent>mac:docsDependientes</parent>         

      </type>

      <type name="mac:ptf1">

         <title>Propuesta de Proc. Fisca.</title>

         <parent>mac:docsDependientes</parent>         

      </type>

      <type name="mac:ptf2">

         <title>Resumen de Entrevistas</title>

         <parent>mac:docsDependientes</parent>         

      </type>

      <type name="mac:ptf3">

         <title>Result. de Comprob. del Area de Residencia</title>

         <parent>mac:docsDependientes</parent>         

      </type>

      <type name="mac:ptf4">

         <title>Propuesta de Visita a Residencia</title>

         <parent>mac:docsDependientes</parent>         

      </type>

      <type name="mac:ptf5">

         <title>Informe Conclusivo</title>

         <parent>mac:docsDependientes</parent>         

      </type>   

      <type name="mac:ptf6">

         <title>Acta de Notificacion</title>

         <parent>mac:docsDependientes</parent>         

      </type>

   </types>

   <aspects><!– aspectos–>

   <!–   <aspect name="mac:clientRelated">

         <title>Someco Client Metadata</title>

         <properties>

            <property name="mac:clientName">

               <type>d:text</type><constraint name="mac:tiposdeActaDACE" type="LIST">

         <parameter name="allowedValues">

         <list>

            <value>Notificacion de Resultados</value>               

         </list>

         </parameter>

      </constraint>

               <mandatory>true</mandatory>

            </property>

            <property name="mac:projectName">

               <type>d:text</type>

               <mandatory>false</mandatory>

            </property>

         </properties>

      </aspect>   –>   

      <aspect name="mac:AspFechaInicio">

         <title>Fecha de Inicio</title>

         <properties>

            <property name="mac:AspInicio">

               <title>Fecha de Inicio</title>

               <type>d:datetime</type>

            </property>

         </properties>

      </aspect>

      <aspect name="mac:AspFechaFin">

         <title>Fecha de Fin</title>

         <properties>

            <property name="mac:AspFin">

               <title>Fecha de Inicio</title>

               <type>d:datetime</type>

            </property>

         </properties>

      </aspect> 

      <aspect name="mac:AspDACE">

         <title>Aspecto DACE</title>

         <properties>

            <property name="mac:PropAccionesDACE">

               <title>Tipo de AC</title>

               <type>d:text</type>

               <multiple>false</multiple>

               <constraints>

                  <constraint ref="mac:accionesDACE" />

               </constraints>

            </property>

         </properties>

      </aspect>

      <aspect name="mac:AspDAG">

         <title>Aspecto DAG</title>

         <properties>

            <property name="mac:PropAccionesDAG">

               <title>Tipo de AC</title>

               <type>d:text</type>

               <multiple>false</multiple>

               <constraints>

                  <constraint ref="mac:accionesDAG" />

               </constraints>

            </property>

         </properties>

      </aspect>

      <aspect name="mac:AspDCG">

         <title>Aspecto DCG</title>

         <properties>

            <property name="mac:PropAccionesDCG">

               <title>Tipo de AC</title>

               <type>d:text</type>

               <multiple>false</multiple>

               <constraints>

                  <constraint ref="mac:accionesDCG" />

               </constraints>

            </property>

         </properties>

      </aspect>      

      <aspect name="mac:AspPlanificada">

         <title>Planificada</title>

         <properties>

            <property name="mac:PropPlanificada">

               <type>d:boolean</type>

               <mandatory>true</mandatory>

            </property>

         </properties>

      </aspect>

      

      <aspect name="mac:AspTipoDeEntidad">

         <title>Tipo de Entidad</title>

         <properties>

            <property name="mac:PropTipoDeEntidad">

               <title>Tipo de Entidad</title>

               <type>d:text</type>

               <multiple>false</multiple>

               <constraints>

                  <constraint ref="mac:tiposDeEntidad" />

               </constraints>   

            </property>

            <property name="mac:PropEntidad">

               <title>Entidad</title>

               <type>d:text</type>

               <multiple>false</multiple>

               <constraints>

                  <constraint ref="mac:EntidadDCG" />

               </constraints>   

            </property>

         </properties>

      </aspect>

      

      <!–aspectos para Tipos de informes –>

      <aspect name="mac:AspTipoDeInformeDACE">

         <title>Informe de DACE</title>

         <properties>

            <property name="mac:PropTipoDeInformeDACE">

               <title>Tipo de Informe</title>

               <type>d:text</type>

               <multiple>false</multiple>

               <constraints>

                  <constraint ref="mac:tiposdeInformeDACE" />

               </constraints>

            </property>

         </properties>

      </aspect>

      <aspect name="mac:AspTipoDeInformeDCG">

         <title>Informe de DCG</title>

         <properties>

            <property name="mac:PropTipoDeInformeDCG">

               <title>Tipo de Informe</title>

               <type>d:text</type>

               <multiple>false</multiple>

               <constraints>

                  <constraint ref="mac:tiposdeInformeDCG" />

               </constraints>

            </property>

         </properties>

      </aspect>

      <aspect name="mac:AspTipoDeInformeDAG">

         <title>Informe de DAG</title>

         <properties>

            <property name="mac:PropTipoDeInformeDAG">

               <title>Tipo de Informe</title>

               <type>d:text</type>

               <multiple>false</multiple>

               <constraints>

                  <constraint ref="mac:tiposdeInformeDAG" />

               </constraints>

            </property>

         </properties>

      </aspect>

      <!–aspectos para Tipos de Acta –>

      <aspect name="mac:AspTipoDeActaDAG">

         <title>Acta de DAG</title>

         <properties>

            <property name="mac:PropTipoDeActaDAG">

               <title>Tipo de Acta</title>

               <type>d:text</type>

               <multiple>false</multiple>

               <constraints>

                  <constraint ref="mac:tiposdeActaDAG" />

               </constraints>

            </property>

         </properties>

      </aspect>

      <aspect name="mac:AspTipoDeActaDCG">

         <title>Acta de DCG</title>

         <properties>

            <property name="mac:PropTipoDeActaDCG">

               <title>Tipo de Acta</title>

               <type>d:text</type>

               <multiple>false</multiple>

               <constraints>

                  <constraint ref="mac:tiposdeActaDCG" />

               </constraints>

            </property>

         </properties>

      </aspect>

      <aspect name="mac:AspTipoDeActaDACE">

         <title>Acta de DACE</title>

         <properties>

            <property name="mac:PropTipoDeActaDACE">

               <title>Tipo de Acta</title>

               <type>d:text</type>

               <multiple>false</multiple>

               <constraints>

                  <constraint ref="mac:tiposdeActaDACE" />

               </constraints>

            </property>

         </properties>

      </aspect>

      <!– Aplicar a Informe Parcial DCG –>

      <aspect name="mac:AspFechaEnvio">

         <title>Fecha de Envio</title>

         <properties>

            <property name="mac:PropFechaEnvio">

               <title>Fecha de envio</title>

               <type>d:datetime</type>

            </property>

            <property name="mac:PropOrganismoControlador">

               <title>Organismo Controlador</title>

               <type>d:text</type>

            </property>

         </properties>

      </aspect>

      <!– Aplicar a Plan de Medidas DCG –>   

      <aspect name="mac:AspPlandeMedidas">

         <title>Plan de Medidas DCG</title>

         <properties>

            <property name="mac:PropFechaEnvioPM">

               <title>Fecha de envio</title>

               <type>d:datetime</type>

            </property>            

         </properties>

      </aspect>

      <aspect name="mac:AspGenericoOT">

         <title>Aspecto Generico de las OTs</title>

         <properties>

            <property name="mac:PropProvincia">

               <title>Provincia</title>

               <type>d:text</type>

               <multiple>false</multiple>

               <constraints>

                  <constraint ref="mac:provincias" />

               </constraints>

            </property>

            <property name="mac:municipio">

               <title>Municipio</title>

               <type>d:text</type>

               <multiple>false</multiple>

               <constraints>

                  <constraint ref="mac:municipios" />

               </constraints>

            </property> 

            <property name="mac:subordinadaA">

               <title>Subordinada a</title>

               <type>d:text</type>

               <multiple>false</multiple>

               <constraints>

                  <constraint ref="mac:controladoresDCG" />

               </constraints>

            </property>

            <property name="mac:gentidad">

               <title>Entidad</title>

               <type>d:text</type>

               <multiple>false</multiple>

               <constraints>

                  <constraint ref="mac:centros" />

               </constraints>

            </property>          

         </properties>

      </aspect>

   </aspects>

</model>


¿Alguna idea para resolver el problema?????
1 Reply
pjcaracuel_2349
Active Member II

Re: Error al subir un documento en Alfresco usando la API de PHP

Buenas,

Te da algun error significativo al subir el documento?

Puedes postear el contenido de alfresco.log, una vez hayas subido un documento?

Gracias