Commit 64592ba1 authored by DJ Adams's avatar DJ Adams

extend setEventType of Execution Log Item control

parent c3bc096a
{"type":"sap.web","builders":{"configs":{}},"runners":{"configs":{}},"attributes":{"sap.watt.common.setting":["{\"projectType\":[\"blank\",\"sap.watt.uitools.ide.web\",\"sap.watt.uitools.ide.fiori\"],\"mockpreview\":{\"mockUri\":\"\",\"metadataFilePath\":\"\",\"loadJSONFiles\":false,\"loadCustomRequests\":false,\"mockRequestsFilePath\":\"\"},\"hcpdeploy\":{\"account\":\"p481810trial\",\"name\":\"bpmworkflowmonitor\",\"lastVersionWeTriedToDeploy\":\"1\"}}"]},"mixinTypes":[]}
\ No newline at end of file
{"type":"sap.web","builders":{"configs":{}},"runners":{"configs":{}},"attributes":{"sap.watt.common.setting":["{\"projectType\":[\"blank\",\"sap.watt.uitools.ide.web\",\"sap.watt.uitools.ide.fiori\"],\"mockpreview\":{\"mockUri\":\"\",\"metadataFilePath\":\"\",\"loadJSONFiles\":false,\"loadCustomRequests\":false,\"mockRequestsFilePath\":\"\"},\"hcpdeploy\":{\"account\":\"p481810trial\",\"name\":\"zbpmworkflowmonitor\",\"lastVersionWeTriedToDeploy\":\"1.0.3\"}}"]},"mixinTypes":[]}
\ No newline at end of file
.che
\ No newline at end of file
.che/project.json
\ No newline at end of file
This diff is collapsed.
......@@ -232,6 +232,33 @@ sap.ui.define([
} else if (sEventType === "INTERMEDIATE_TIMER_EVENT_TRIGGERED") {
this.setContent(this._createTimePassedTextControl());
}
/**
* Add label showing event type if we can. Following the VBox-as-container pattern here.
* First, we'll create a VBox with a Label/Text showing the event type, optionally
* adding anothe Label/Text combo to show the task ID if appropriate.
* Then:
* - if there's no content, we'll set that new VBox as the content
* - if there's content but it's not a VBox, we'll set the new VBox as content,
* adding the existing content to it
* - otherwise it's a VBox so just add the new Label/Text to that
*/
var oTypeInfo = this._createOptionalLabelWithText(I18n.getText("EVENT_TYPE_LABEL"), "{wfilog>type}"),
oTaskIdInfo = this._createOptionalLabelWithText(I18n.getText("TASK_ID_LABEL"), "{wfilog>taskId}"),
oVBox = new VBox({ items : [ oTypeInfo ] }),
oContentControl = this.getContent();
if (!oContentControl) {
this.setContent(oVBox);
} else if (oContentControl.getMetadata().getName() === "sap.m.VBox") {
oContentControl.addItem(oTypeInfo);
oVBox = oContentControl;
} else {
this.setContent(oVBox.addItem(oContentControl));
}
if (sEventType === "USERTASK_CREATED") {
oVBox.addItem(oTaskIdInfo);
}
},
renderer: function(oRM, oControl) {
......
{
"application": {
"id": "",
"title": "com.sap.bpm.monitorworkflow.bpmworkflowmonitor",
"description": "Custom Workflow Monitor",
"type": "SAP_UI5_Component",
"componentUrl": "/",
"appUrl": "#bpmworkflowmonitor-Display",
"navigationComponentName": "com.sap.bpm.monitorworkflow",
"intentSemanticObject": "bpmworkflowmonitor",
"intentAction": "Display",
"html5ApplicationName": "zbpmworkflowmonitor",
"HCPParentApplicationName": ""
},
"assignment": {
"groups": [
"5df8b5ce-4525-4e86-9e7c-c8c4df2f37dd"
],
"contentPackages": [
"00000000-0000-2222-0000-00000000"
],
"categories": []
},
"tile": {
"type": "StaticTile",
"title": "Workflow Monitor",
"subtitle": "Custom",
"searchKeywords": "Workflow Monitor,Custom",
"displayIconUrl": "sap-icon://workflow-tasks",
"displayInfoText": "",
"size": "1x1",
"serviceURL": "",
"refreshInterval": ""
}
}
\ No newline at end of file
......@@ -545,3 +545,9 @@ RECIPIENT_USERS_UNKNOWN=unknown
#XMSG: Fallback when the error message of a task is not known (undefined or empty)
ERROR_MESSAGE_UNKNOWN=unknown
#XMSG: Label for the event type
EVENT_TYPE_LABEL=Event Type
#XMSG: Label for the task ID
TASK_ID_LABEL=Task ID
......@@ -117,5 +117,9 @@
}
}
}
},
"sap.platform.hcp": {
"uri": "",
"_version": "1.1.0"
}
}
\ No newline at end of file
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment