Hey @rk,
ich habe jetzt auch noch einmal mit dms.GetResultList
und dem Feld OBJECT_SIGNSTATE
getestet. Leider bleibt das Systemfeld trotz der Unterschrift durch Governikus auch hier leer.
Wenn dir nichts mehr einfällt, würde ich mich mal an OSB wenden, ob es eine andere Möglichkeit gibt.
Das untenstehende XML enthält die Signatur, die auch in Adobe sichtbar ist.
Der Kunde hat mir das Dokument zur Verfügung gestellt, damit ich unabhängig testen kann.
<?xml version="1.0" encoding="UTF-8" standalone="yes"?>\r\n<DMSContent format="LOL" output_language="0" version="10.10.773.22129" timest amp="2024-11-15T10:38:41" user="DEV-ADMIN" station="OSVK-EXT-REST" instance="Signature_Flag">
<Archive name="Verwaltungsakte" id="22" osguid="CB9F8B4285814F2696B25C176237B494">
<ObjectType name="Dokument" id="262197" maintype="4" cotype="53" osguid="0AFFA84B143C45C4BC54ABC75CE84187" internal_name="Dokument" type="DOCUMENT" modul="MULTIDOC" table="object106">
<Rowset>
<Columns>
<Column object="Dokument" type="DOCUMENT" name="signstate" internal_name="OBJECT_SIGNSTATE" system="1" datatype="INTEGER" dbname="signstate" ostype="9" osguid="1906" size="10">OBJECT_SIGNSTATE</Column>
<Column object="Dokument" type="DOCUMENT" name="Titel" internal_name="OSTPL_DOCTITLE" datatype="TEXT" dbname="feld4" ostype="X" osguid="3DF2F366296242A5BB582E6118EB0E34" size="250">Titel</Column>
</Columns>
<Rows>
<Row id="1275">
<Value/>
<Value>Signatur</Value>
</Row>
</Rows>
</Rowset>
<Statistics startpos="0" pagesize="-1" total_hits="1"/>
</ObjectType>
</Archive>
<Messages/>
</DMSContent>
<?xml version="1.0" encoding="UTF-8" standalone="yes"?>\r\n<DMSContent format="LOL" output_language="0" version="10.10.773.22129" timest amp="2024-11-15T11:13:41" user="DEV-ADMIN" station="OSVK-EXT-REST" instance="Signature_Flag">
<Archive name="Verwaltungsakte" id="22" osguid="CB9F8B4285814F2696B25C176237B494">
<ObjectType name="Dokument" id="262197" maintype="4" cotype="53" osguid="0AFFA84B143C45C4BC54ABC75CE84187" internal_name="Dokument" type="DOCUMENT" modul="MULTIDOC" table="object106">
<Rowset>
<Columns>
<Column object="Dokument" type="DOCUMENT" name="signstate" internal_name="OBJECT_SIGNSTATE" system="1" datatype="INTEGER" dbname="signstate" ostype="9" osguid="1906" size="10">OBJECT_SIGNSTATE</Column>
<Column object="Dokument" type="DOCUMENT" name="Titel" internal_name="OSTPL_DOCTITLE" datatype="TEXT" dbname="feld4" ostype="X" osguid="3DF2F366296242A5BB582E6118EB0E34" size="250">Titel</Column>
</Columns>
<Rows>
<Row id="1276">
<Value/>
<Value>40 Umlauf02 Sonstiges - - - Baubeschreibung_2022_12_12_PDFA.pdf - Nein - Nein -</Value>
</Row>
</Rows>
</Rowset>
<Statistics startpos="0" pagesize="-1" total_h its="1"/>
</ObjectType>
</Archive>
<Messages/>
</DMSContent>
dms_query = ET.Element("DMSQuery")
archive = ET.SubElement(dms_query, "Archive", internal_name=folder)
object_type = ET.SubElement(archive, "ObjectType", internal_name=document, type="DOCUMENT")
fields = ET.SubElement(object_type, "Fields", field_schema="DEF")
ET.SubElement(fields, "Field", internal_name="OBJECT_SIGNSTATE", system='1')
ET.SubElement(fields, "Field", internal_name="OSTPL_DOCTITLE")
conditions = ET.SubElement(object_type, "Conditions")
condition_object = ET.SubElement(conditions, "ConditionObject", internal_name=document, Type="DOCUMENT")
field_condition = ET.SubElement(condition_object, "FieldCondition", internal_name="OBJECT_ID", system="1", operator="=")
ET.SubElement(field_condition, "Value").text = osid
xml_byte = ET.tostring(dms_query, encoding="utf-8")
xml_string = xml_byte.decode("utf-8")
job = Job(
jobname="dms.GetResultList",
XML=xml_string,
FLAGS=0,
ENCODING="utf-8",
)
response = client.execute(job)
print(response)