@@ -44,10 +44,12 @@ import (
4444)
4545
4646const (
47- defaultTestDomain = "default-test-domain"
48- defaultTestTaskList = "default-test-tasklist"
49- defaultTestWorkflowID = "default-test-workflow-id"
50- defaultTestRunID = "default-test-run-id"
47+ defaultTestDomain = "default-test-domain"
48+ defaultTestTaskList = "default-test-tasklist"
49+ defaultTestWorkflowID = "default-test-workflow-id"
50+ defaultTestRunID = "default-test-run-id"
51+ defaultTestWorkflowTypeName = "default-test-workflow-type-name"
52+ defaultTestDomainName = "default-test-domain-name"
5153)
5254
5355type (
@@ -439,6 +441,8 @@ func (env *testWorkflowEnvironmentImpl) executeActivity(
439441 defaultTestWorkflowID ,
440442 defaultTestRunID ,
441443 "0" ,
444+ defaultTestWorkflowTypeName ,
445+ defaultTestDomainName ,
442446 params ,
443447 )
444448
@@ -803,6 +807,8 @@ func (env *testWorkflowEnvironmentImpl) ExecuteActivity(parameters executeActivi
803807 defaultTestWorkflowID ,
804808 defaultTestRunID ,
805809 activityInfo .activityID ,
810+ defaultTestWorkflowTypeName ,
811+ defaultTestDomainName ,
806812 parameters ,
807813 )
808814
@@ -1365,7 +1371,7 @@ func (env *testWorkflowEnvironmentImpl) newTestActivityTaskHandler(taskList stri
13651371 return taskHandler
13661372}
13671373
1368- func newTestActivityTask (workflowID , runID , activityID string , params executeActivityParams ) * shared.PollForActivityTaskResponse {
1374+ func newTestActivityTask (workflowID , runID , activityID , workflowTypeName , domainName string , params executeActivityParams ) * shared.PollForActivityTaskResponse {
13691375 task := & shared.PollForActivityTaskResponse {
13701376 WorkflowExecution : & shared.WorkflowExecution {
13711377 WorkflowId : common .StringPtr (workflowID ),
@@ -1380,6 +1386,10 @@ func newTestActivityTask(workflowID, runID, activityID string, params executeAct
13801386 StartedTimestamp : common .Int64Ptr (time .Now ().UnixNano ()),
13811387 StartToCloseTimeoutSeconds : common .Int32Ptr (params .StartToCloseTimeoutSeconds ),
13821388 HeartbeatTimeoutSeconds : common .Int32Ptr (params .HeartbeatTimeoutSeconds ),
1389+ WorkflowType : & shared.WorkflowType {
1390+ Name : common .StringPtr (workflowTypeName ),
1391+ },
1392+ WorkflowDomain : common .StringPtr (domainName ),
13831393 }
13841394 return task
13851395}
0 commit comments