BUG 10397 Función PMFTaskCase devuelve index y no el guid SOLVED
- La función PMFTaskCase devuelve el delegate index de la tarea y no el Guid. - Adjustment function PMFTaskCase for Web Services.
This commit is contained in:
@@ -2434,13 +2434,13 @@ class wsBase
|
|||||||
$result = array ();
|
$result = array ();
|
||||||
try {
|
try {
|
||||||
$oCriteria = new Criteria( 'workflow' );
|
$oCriteria = new Criteria( 'workflow' );
|
||||||
$del = DBAdapter::getStringDelimiter();
|
$del = DBAdapter::getStringDelimiter();
|
||||||
$oCriteria->addSelectColumn( AppDelegationPeer::DEL_INDEX );
|
$oCriteria->addSelectColumn( AppDelegationPeer::DEL_INDEX );
|
||||||
$oCriteria->addSelectColumn( AppDelegationPeer::TAS_UID );
|
$oCriteria->addSelectColumn( AppDelegationPeer::TAS_UID );
|
||||||
|
|
||||||
$oCriteria->addAsColumn( 'TAS_TITLE', 'C1.CON_VALUE' );
|
$oCriteria->addAsColumn( 'TAS_TITLE', 'C1.CON_VALUE' );
|
||||||
$oCriteria->addAlias( "C1", 'CONTENT' );
|
$oCriteria->addAlias( "C1", 'CONTENT' );
|
||||||
$tasTitleConds = array ();
|
$tasTitleConds = array ();
|
||||||
$tasTitleConds[] = array (AppDelegationPeer::TAS_UID,'C1.CON_ID');
|
$tasTitleConds[] = array (AppDelegationPeer::TAS_UID,'C1.CON_ID');
|
||||||
$tasTitleConds[] = array ('C1.CON_CATEGORY',$del . 'TAS_TITLE' . $del);
|
$tasTitleConds[] = array ('C1.CON_CATEGORY',$del . 'TAS_TITLE' . $del);
|
||||||
$tasTitleConds[] = array ('C1.CON_LANG',$del . SYS_LANG . $del);
|
$tasTitleConds[] = array ('C1.CON_LANG',$del . SYS_LANG . $del);
|
||||||
@@ -2464,8 +2464,7 @@ class wsBase
|
|||||||
|
|
||||||
return $result;
|
return $result;
|
||||||
} catch (Exception $e) {
|
} catch (Exception $e) {
|
||||||
$result[] = array ('guid' => $e->getMessage(),'name' => $e->getMessage()
|
$result[] = array ('guid' => $e->getMessage(),'name' => $e->getMessage(), 'delegate' => $e->getMessage() );
|
||||||
);
|
|
||||||
|
|
||||||
return $result;
|
return $result;
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -353,6 +353,7 @@
|
|||||||
<xs:sequence >
|
<xs:sequence >
|
||||||
<xs:element name="guid" type="xs:string"/>
|
<xs:element name="guid" type="xs:string"/>
|
||||||
<xs:element name="name" type="xs:string"/>
|
<xs:element name="name" type="xs:string"/>
|
||||||
|
<xs:element name="delegate" type="xs:string"/>
|
||||||
</xs:sequence>
|
</xs:sequence>
|
||||||
</xs:complexType>
|
</xs:complexType>
|
||||||
</xs:element>
|
</xs:element>
|
||||||
|
|||||||
@@ -576,6 +576,7 @@
|
|||||||
<xs:sequence>
|
<xs:sequence>
|
||||||
<xs:element name="guid" type="xs:string"/>
|
<xs:element name="guid" type="xs:string"/>
|
||||||
<xs:element name="name" type="xs:string"/>
|
<xs:element name="name" type="xs:string"/>
|
||||||
|
<xs:element name="delegate" type="xs:string"/>
|
||||||
</xs:sequence>
|
</xs:sequence>
|
||||||
</xs:complexType>
|
</xs:complexType>
|
||||||
<xs:element name="taskCaseRequest">
|
<xs:element name="taskCaseRequest">
|
||||||
|
|||||||
@@ -1365,17 +1365,15 @@ try {
|
|||||||
break;
|
break;
|
||||||
case "TaskCase":
|
case "TaskCase":
|
||||||
$sessionId = $frm["SESSION_ID"];
|
$sessionId = $frm["SESSION_ID"];
|
||||||
$caseId = $frm["CASE_ID"];
|
$caseId = $frm["CASE_ID"];
|
||||||
|
|
||||||
$params = array ('sessionId' => $sessionId,'caseId' => $caseId
|
$params = array ('sessionId' => $sessionId,'caseId' => $caseId);
|
||||||
);
|
$wsResponse = $client->__SoapCall( 'TaskCase', array ($params) );
|
||||||
$wsResponse = $client->__SoapCall( 'TaskCase', array ($params
|
|
||||||
) );
|
$result = G::PMWSCompositeResponse( $wsResponse, 'taskCases' );
|
||||||
$result = G::PMWSCompositeResponse( $wsResponse, 'taskCases' );
|
|
||||||
|
|
||||||
$G_PUBLISH = new Publisher();
|
$G_PUBLISH = new Publisher();
|
||||||
$rows[] = array ('guid' => 'char','name' => 'char'
|
$rows[] = array ('guid' => 'char','name' => 'char', 'delegate' => 'char' );
|
||||||
);
|
|
||||||
|
|
||||||
if (is_array( $result )) {
|
if (is_array( $result )) {
|
||||||
|
|
||||||
@@ -1388,6 +1386,9 @@ try {
|
|||||||
if ($val->key == 'name') {
|
if ($val->key == 'name') {
|
||||||
$name = $val->value;
|
$name = $val->value;
|
||||||
}
|
}
|
||||||
|
if ($val->key == 'delegate') {
|
||||||
|
$delegate = $val->value;
|
||||||
|
}
|
||||||
}
|
}
|
||||||
} elseif (is_array( $item )) {
|
} elseif (is_array( $item )) {
|
||||||
foreach ($item as $index => $val) {
|
foreach ($item as $index => $val) {
|
||||||
@@ -1396,7 +1397,7 @@ try {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
if ($val->key == 'name') {
|
if (isset($val->key) && ($val->key == 'name')) {
|
||||||
$name = $val->value;
|
$name = $val->value;
|
||||||
} else {
|
} else {
|
||||||
if (isset( $item->guid )) {
|
if (isset( $item->guid )) {
|
||||||
@@ -1405,28 +1406,29 @@ try {
|
|||||||
if (isset( $item->name )) {
|
if (isset( $item->name )) {
|
||||||
$name = $item->name;
|
$name = $item->name;
|
||||||
}
|
}
|
||||||
|
if (isset( $item->delegate )) {
|
||||||
|
$delegate = $item->delegate;
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
$rows[] = array ('guid' => $guid,'name' => $name
|
$rows[] = array ('guid' => $guid, 'name' => $name, 'delegate' => $delegate);
|
||||||
);
|
|
||||||
}
|
}
|
||||||
|
|
||||||
global $_DBArray;
|
global $_DBArray;
|
||||||
$_DBArray = (isset( $_SESSION['_DBArray'] ) ? $_SESSION['_DBArray'] : '');
|
$_DBArray = (isset( $_SESSION['_DBArray'] ) ? $_SESSION['_DBArray'] : '');
|
||||||
$_DBArray['taskCases'] = $rows;
|
$_DBArray['taskCases'] = $rows;
|
||||||
$_SESSION['_DBArray'] = $_DBArray;
|
$_SESSION['_DBArray'] = $_DBArray;
|
||||||
|
|
||||||
G::LoadClass( 'ArrayPeer' );
|
G::LoadClass( 'ArrayPeer' );
|
||||||
$c = new Criteria( 'dbarray' );
|
$c = new Criteria( 'dbarray' );
|
||||||
$c->setDBArrayTable( 'taskCases' );
|
$c->setDBArrayTable( 'taskCases' );
|
||||||
$c->addAscendingOrderByColumn( 'name' );
|
$c->addAscendingOrderByColumn( 'name' );
|
||||||
$G_PUBLISH->AddContent( 'propeltable', 'paged-table', 'setup/wsrTaskCase', $c );
|
$G_PUBLISH->AddContent( 'propeltable', 'paged-table', 'setup/wsrTaskCase', $c );
|
||||||
} elseif (is_object( $result ))
|
} elseif (is_object( $result )) {
|
||||||
{
|
|
||||||
$_SESSION['WS_SESSION_ID'] = '';
|
$_SESSION['WS_SESSION_ID'] = '';
|
||||||
$fields['status_code'] = $result->status_code;
|
$fields['status_code'] = $result->status_code;
|
||||||
$fields['message'] = $result->message;
|
$fields['message'] = $result->message;
|
||||||
$fields['time_stamp'] = date( "Y-m-d H:i:s" );
|
$fields['time_stamp'] = date( "Y-m-d H:i:s" );
|
||||||
$G_PUBLISH->AddContent( 'xmlform', 'xmlform', 'setup/wsShowResult', null, $fields );
|
$G_PUBLISH->AddContent( 'xmlform', 'xmlform', 'setup/wsShowResult', null, $fields );
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
@@ -3,10 +3,14 @@
|
|||||||
|
|
||||||
<guid type="text" colWidth="200" align="left" titleAlign="left">
|
<guid type="text" colWidth="200" align="left" titleAlign="left">
|
||||||
<en>Del Index</en>
|
<en>Del Index</en>
|
||||||
<es>Del Index</es></guid>
|
</guid>
|
||||||
|
|
||||||
<name type="text" colWidth="280" align="left" titleAlign="left">
|
<name type="text" colWidth="280" align="left" titleAlign="left">
|
||||||
<en>Task Title</en>
|
<en>Task Title</en>
|
||||||
<es><![CDATA[Título de Tarea]]></es></name>
|
</name>
|
||||||
|
|
||||||
|
<delegate type="text" colWidth="280" align="left" titleAlign="left">
|
||||||
|
<en>Delegate Index</en>
|
||||||
|
</delegate>
|
||||||
|
|
||||||
</dynaForm>
|
</dynaForm>
|
||||||
Reference in New Issue
Block a user