Catalog differences between business entity and task for invokable methods
 
Forums / SmartComponent Library - Developer Forum / Catalog differences between business entity and task for invokable methods

Catalog differences between business entity and task for invokable methods

3 posts, 1 answered
  1. Patrik Wikström
    Patrik Wikström avatar
    70 posts
    Registered:
    15 Oct 2018
    Answered
    15 Oct 2018
    Link to this post
    Is the catalogs returned as they are supposed to for invokable methods? First a business entity, notice that the dataset name is plcDataset:
                            {
                                "name": "Initialize",
                                "path": "/Initialize",
                                "useBeforeImage": false,
                                "type": "invoke",
                                "verb": "put",
                                "params": [
                                    {
                                        "name": "plcDataset",
                                        "type": "REQUEST_BODY"
                                    },
                                    {
                                        "name": "plcParameter",
                                        "type": "REQUEST_BODY"
                                    }
                                ]
                            },
    Next a business task, notice that the name is now the name of the dataset and not plcDataset:
                            {
                                "name": "GetData",
                                "path": "/GetData",
                                "useBeforeImage": false,
                                "type": "invoke",
                                "verb": "put",
                                "params": [
                                    {
                                        "name": "dsMealOrder",
                                        "type": "REQUEST_BODY"
                                    },
                                    {
                                        "name": "plcParameter",
                                        "type": "REQUEST_BODY"
                                    }
                                ]
                            },

    Is this correct and what is the logic behind it?
  2. Mike Fechner
    Mike Fechner avatar
    342 posts
    Registered:
    14 Sep 2016
    15 Oct 2018 in reply to Patrik Wikström
    Link to this post
    This is expected behavior.

    The parameter names are pretty static for the classic REST Adapter. So it's kind of a legacy. But as we have customers using the classic REST Adapter, we cannot change this. 
  3. Patrik Wikström
    Patrik Wikström avatar
    70 posts
    Registered:
    15 Oct 2018
    16 Oct 2018 in reply to Mike Fechner
    Link to this post
    Ok, thanks for the info!
3 posts, 1 answered