DX7 CODE BUG? Why WorkflowActivity.getCreatedTime is NULL?

Confluence User - 25 Nov, 2022

WorkflowActivity wfActivity = workflowManager.getActivityById(activityInstanceId);//it is OK
String processName = wfActivity.getProcessName();//it can get value
String activityName = wfActivity.getName();//it can get value


Date createdTime = wfActivity.getCreatedTime() //it is null.

server

2


01 Dec, 2022
confluenceUser
confluenceUser

Some functions and APIs would only return only certain default fields. If you need specific fields, you have to explicitly request it. This might help https://stackoverflow.com/questions/40170375/google-drive-rest-api-file-getcreatedtime-returns-always-null


01 Dec, 2022
confluenceUser
confluenceUser

Hi, not all information might be available in that method. You might want to try other methods, for example workflowManager.getRunningActivityInfo(activityInstanceId)


RELATED QUESTIONS

Your answer


To answer a question you'll need an account.

Print