Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Missing Task Details duration and end Date attributes #2281

Closed
davidcanonieto opened this issue Dec 17, 2018 · 12 comments
Closed

Missing Task Details duration and end Date attributes #2281

davidcanonieto opened this issue Dec 17, 2018 · 12 comments
Assignees
Milestone

Comments

@davidcanonieto
Copy link

The current Task Details Model lacks duration and end date. It can be achieved by combining other attributes but this might lead to further confusion and complication.

@davidcanonieto davidcanonieto changed the title Missing Task Details attributes Missing Task Details duration and end Date attributes Dec 17, 2018
@salaboy salaboy added this to Open in Activiti 7.x via automation Dec 18, 2018
@salaboy salaboy added this to the RC1 milestone Dec 18, 2018
@salaboy
Copy link
Contributor

salaboy commented Dec 18, 2018

@miguelruizdev
Copy link
Contributor

miguelruizdev commented Dec 18, 2018

@miguelruizdev miguelruizdev self-assigned this Dec 18, 2018
@miguelruizdev
Copy link
Contributor

This is what a task looks like today:

{
    "serviceName": "rb-my-app",
    "serviceFullName": "rb-my-app",
    "serviceVersion": "",
    "appName": "default-app",
    "appVersion": "",
    "id": "9446b62c-02bc-11e9-9a5e-0a580a180015",
    "name": "Perform action",
    "createdDate": "2018-12-18T12:00:57.628+0000",
    "priority": 50,
    "processDefinitionId": "ProcessWithVariables:1:12d29ae7-02bc-11e9-9a5e-0a580a180015",
    "processInstanceId": "94468f19-02bc-11e9-9a5e-0a580a180015",
    "status": "CREATED",
    "lastModified": "2018-12-18T12:00:57.628+0000",
    "standAlone": false,
    "_links": {
        "self": {
            "href": "http://query/v1/tasks/9446b62c-02bc-11e9-9a5e-0a580a180015"
        }
    }
}

@miguelruizdev
Copy link
Contributor

Besides the missing fields, there was a difference regarding the date treatment that @davidcanonieto pointed out: the retrieved tasks have Date objects whereas the expected deal with number of milliseconds

@miguelruizdev
Copy link
Contributor

Probably that type conversion should take place on the client side, though

Activiti 7.x automation moved this from Open to Closed Dec 18, 2018
@miguelruizdev miguelruizdev reopened this Dec 18, 2018
Activiti 7.x automation moved this from Closed to Open Dec 18, 2018
@miguelruizdev
Copy link
Contributor

This are the changes in the acceptance test covering the newly added code: AlfrescoArchive/activiti-cloud-acceptance-scenarios@9b854f7
Only mergeable when the above PRs are merged

@salaboy
Copy link
Contributor

salaboy commented Jan 15, 2019

@miguelruizdev the last comment about acceptance tests points to a commit not to a PR.. why is that?

@miguelruizdev
Copy link
Contributor

@salaboy yep, it's the acceptance test covering the added changes across this issue. Should I open the PR even though I know it will fail anyway?

@salaboy
Copy link
Contributor

salaboy commented Jan 15, 2019

@miguelruizdev we need a PR to see if it builds or not (compilation errors)

@miguelruizdev
Copy link
Contributor

@salaboy here it is the acceptance tests PR: AlfrescoArchive/activiti-cloud-acceptance-scenarios#106
Changes in the api(s) need to be propagated for it to compile.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
Activiti 7.x
  
Closed
Development

No branches or pull requests

3 participants