Project and Portfolio Management Practitioners Forum
cancel

Creating projects automatically from timeout step

Highlighted
Łukasz Czech
Super Contributor.

Creating projects automatically from timeout step

Hi,

we have a problem with automatic creation of project request using execution step that is made eligible by predecessor workflow step timeout (see attached file with workflow). Create Project step commands are executed by fails with no any specific error and project is not created.

What is strange - using the same workflow, but invoking Create project execution step manually, creates project successfully.

There is a slight difference in commands executed when step is entered manually (using action) or by timeout - see below commands. There are 2 additional parameters added by the system, not included in command, and these parameters differs in each case.
Any ideas of the reason for such behaviour?

Executed command (workflow step source):
ksc_create_project PROJECT_NAME="[REQ.DESCRIPTION]" REQUEST_ID="[REQ.REQUEST_ID]" REGION_ID="30000" FINISH_DATE="[REQD.P.GEMB_PLAN_FINISH_DATE]" START_DATE="[REQD.P.GEMB_PLAN_START_DATE]" PROJECT_TYPE_NAME="GEMB - IT DRS Project" PROJECT_MANAGER="[REQD.P.GEMB_ITPM]"

Executed step when Create Project step is entered manually using workflow action:
Running command: com.kintana.core.server.execution.CreateProject -projectName "IP addressing plan " -projectTypeName "GEMB - IT DRS Project" -startDate "30129" -endDate "30155" -projectManager "31053" -region "30000" -requestID 33787 -userID 33875 -userName "123040412"

Executed command when Create Project step is entered automatically by predecessor step timeout:
Running command: com.kintana.core.server.execution.CreateProject -projectName "IP addressing plan " -projectTypeName "GEMB - IT DRS Project" -startDate "30129" -endDate "30155" -projectManager "31053" -region "30000" -requestID 33787 -userID 30 -userName "workflow_timeout_service"
Configuring connection...
Ready to create project from Project Type: GEMB - IT DRS Project
4 REPLIES
Semenov Alexand
Acclaimed Contributor.

Re: Creating projects automatically from timeout step

Good day.
For creatig project request try use same (5 FIELDS) tokens and field types as from BOX process (Proposal->Project).
Łukasz Czech
Super Contributor.

Re: Creating projects automatically from timeout step

Alexander,

could you elaborate more on that? Please note that I fill all required fields to create project and it is being created when using manual action. The problem is with automatic (on timeout) step execution.

This out of the box is also based on manual action.

Best regards
Lukasz Czech
Semenov Alexand
Acclaimed Contributor.

Re: Creating projects automatically from timeout step

Hi Å ukasz,
see attach.
Good Luck
Erik Cole
Acclaimed Contributor.

Re: Creating projects automatically from timeout step

Hi Lukasz,

It looks like the create project step is taking the username from whoever acted on the previous step because of the predecessor step timeout. So ksc_create_project is using [SYS.USERNAME] which in this case is resolving to "workflow_timeout_service" but the service doesn't have the rights to create a project.

What I would try is make a copy of the ksc_create_project special command and edit it to use a token from your request instead of [SYS.USER_ID] and [SYS.USERNAME]. You could also maybe just 'hard-code' them to be the admin user account, but whatever you use will need to have the Create Projects access grant. Then use this command in your workflow step.