You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@unomi.apache.org by "Bhagi Raj Limbu (Jira)" <ji...@apache.org> on 2019/10/22 09:19:00 UTC

[jira] [Created] (UNOMI-253) Can't create segments

Bhagi Raj Limbu created UNOMI-253:
-------------------------------------

             Summary: Can't create segments
                 Key: UNOMI-253
                 URL: https://issues.apache.org/jira/browse/UNOMI-253
             Project: Apache Unomi
          Issue Type: Bug
          Components: core
    Affects Versions: 1.5.0
            Reporter: Bhagi Raj Limbu


I follow a steps mention in documents create a segment through console command and POSTMAN in local machine as well as Azure server.  It's a simple segment
{code:java}
curl -X POST http://localhost:8181/cxs/segments \
--user karaf:karaf \
-H "Content-Type: application/json" \
-d @- <<'EOF'
{
  "itemId": "leads",
  "itemType": "segments",
  "metadata": {
    "id": "leads",
    "name": "Leads",
    "scope": "systemscope",
    "description": "You can customize the list below by editing the leads segment."
  },
  "condition": {
    "type": "booleanCondition",
    "parameterValues": {
      "operator": "and",
      "subConditions": [
        {
          "type": "profilePropertyCondition",
          "parameterValues": {
            "propertyName": "properties.leadAssignedTo",
            "comparisonOperator": "exists"
          }
        }
      ]
    }
  }
}
EOF
{code}
I put a break lines on SegmentServiceImpl.java and ElasticSearchPersistanceServiceImpl.java and debug through
{code:java}
public boolean save(final Item item, final boolean useBatching)
{code}
methods. The code didn't throw exception and looks good. But, after exit code and run command in karaf console -
{code:java}
unomi:segment-list
{code}
It returns empty. I wonder have you had similar experience?

 

 

 

 

 



--
This message was sent by Atlassian Jira
(v8.3.4#803005)