Note: Forums will be making significant UX changes to address key usability improvements surrounding search, discoverability and navigation. To learn more about these changes please visit the announcement which can be found HERE.

Locked Workflow Activity Tracking

  • 3 มกราคม 2555 18:25
     
      มีโค้ด

    We have a service running on AppFabric Server, using the following tracking profile. This tracking works for all activities except for one specific activity class, where variable values are not recorded. In the AppFabric dashboard, there are no values listed under the "Variables" tab for this particular activity.

     

       <trackingProfile name="TestService Activity Tracking" implementationVisibility="All">
    	<workflow activityDefinitionId="*">
       		<workflowInstanceQueries>
                    	<workflowInstanceQuery>
                            	 <states>
                                     	<state name="Started" />
                                            <state name="Completed" />
                                            <state name="UnhandledException" />
                                     </states>
    			 </workflowInstanceQuery>
    		</workflowInstanceQueries>
    			<activityStateQueries>
    				 <activityStateQuery activityName="*">
    					 <states>
                                            	<state name="*" />
      					</states>
    					 <arguments>
    						<argument name="*" />
    					 </arguments>
    				</activityStateQuery>
    			</activityStateQueries>
    		</workflow>
    	</trackingProfile>
    
    

     

    At first glance, the activity itself does not appear to do much other than manipulate CodeActivityContext property values and output a string.

    Suggestions on how to troubleshoot this? Thanks.



    • แก้ไขโดย wongnation 3 มกราคม 2555 18:28 fix formatting
    •  

ตอบทั้งหมด

  • 6 มกราคม 2555 1:24
    ผู้ดูแล
     
     

    Are you sure the activity is being executed? Is it possible instances are not executing this activity?

    Thanks,


    If this answers your question, please use the "Answer" button to say so | Ben Cline
  • 6 มกราคม 2555 3:25
     
     
    Yes, the activity is being executed. We've added logging in the activity class that writes to the Windows Event log, and this works.