Expression Language ㅇ_ㅇ
Expression Language ㅇ_ㅇ
분석중
"fileUrlFormat": {
"default": "{{:getEnvValue('core.cluster.api-url-prefix')}}"
},
ProcessUtils.getElValue(Object configValue, ReadContext)
configValue : "{{:getEnvValue('core.cluster.api-url-prefix')}}"
if (StringUtils.contains((String) configValue, "{{:") && StringUtils.contains((String) configValue, "}}")) {
Template template = new Template((String) configValue);
template.parsing();
return template.format(context);
// } if(((String) configValue).contains(".")){
// return context.getContextValue((String) configValue);
}
MethodHelper.execute(methodStr, methodParams, params, context);
apiConfig query
"query": [
{
"method": "matching",
"field": "site",
"value": "{{:_siteId}}"
},
{
"method": "count",
"value": "{{:count}}"
}
]
apiResponse
"response": [
{
"field": "id",
"type": "field",
"value": ""
},
{
"field": "images",
"type": "field",
"value": "baseProduct.images"
},
{
"field": "created",
"type": "field",
"value": "baseProduct.created"
},
{
"field": "sessionKey",
"type": "field",
"value": "session.sessionKey"
}
]
propertyType
{
"pid": "project",
"name": "Project",
"valueType": "REFERENCES",
"required": false,
"indexable": true,
"referenceType": "project",
"defaultValue" : "{{:session.projectId}}",
"orderNo" : 15
}
{
"pid" : "server",
"name" : "Server",
"valueType" : "REFERENCE",
"idable" : true,
"indexable" : true,
"labelable" : false,
"analyzer": "simple",
"required" : true,
"referenceType" : "server",
"defaultValue" : "{{:serverSelector()}}",
"orderNo": 2
}
{
"pid": "orderNo",
"name": "정렬순서",
"valueType": "INT",
"indexable": true,
"defaultValue": "{{:nextOrderNo('productAttrItem', 'productAttrType', productAttrType)}}",
"orderNo": 40
},
{
"pid" : "filterPid",
"name" : "Filter Property",
"valueType" : "REFERENCE",
"indexable" : true,
"analyzer": "simple",
"referenceType": "propertyType",
"filter": "tid_refId_matching={{:statisticId.tid}}",
"relatedPid":"statisticId",
"orderNo": 41
}
{
"pid": "enableFormFields",
"name": "Enable Form Fields",
"valueType": "REFERENCES",
"defaultComponent": "common.presentational.Sortable",
"referenceType": "propertyType",
"filter": "tid_refId_matching={{:builderTid(parentInstanceId, propertyType.referenceType)}}",
"relatedPid": "parentInstanceId",
"orderNo": 145
}
ICE내부
Expressions
{{: }}
Implicit scope Objects
session
context
context.data
request parameters
context.node
parent response result
Value Expressions
session.customer.id
context.pg.orderId
cart.id
price.salePrice
'success'
Method Expressions
{{:getNode('cart',cart.id)}}
{{:notEquals('none',siteProduct.productDetail.optionType)}}
Referencing Objects
, multiple selections available,