I tried to add Wait workflow task into Sequential Workflow
I was expecting …
Task will be added without problems
Instead I’ve got …
I can´t add the task:
The source file is damaged and the solution stop working
Fix of the file and the cause
I was able to find debug in architect and the problem is that architect starts to add xmlns: definitions into elements which is then evaluated as “A Namespace Name for xmlns Attributes” namespace and is refused by architect as not origam.com namespace
My pressumption here is that WorkflowTask and WaitTask has the same synonym wt, so when Architect adds wt as WaitTask it changes all namespaces for WorkflowTask
Replace all appearances of “strange” namespace: p21 by wtask
Replace all appearances of xmlns:p21="http://schemas.origam.com/Origam.Schema.WorkflowModel.WorkflowTask/6.0.0" by `` (empty string)
I can also search in file for any appearance of " xmlns: (because all corrupted lines are xmlns namespace behind attribute) to make sure that there is no other namespace inside element.
But when I add new Workflow task step, then it removes wt namespace for WaitTask and change it into WorkflowTask. This is very inconvenient for working with architect if it damaging source file the way that then it can’t interpret it.
I gave a try to a new version but without success. When I try to connect model, it throws an exception. But then it starts the architect. I try to open model again and it works until I open folder Business Logic in the model Then it throws another exception, see below.
BTW: The same is happenning for version 2022.3. I can’t currently use newer versions of architect.
========================================
Repository Login Failed
Repository login failed.
Unable to load one or more of the requested types. Retrieve the LoaderExceptions property for more information.
========================================
Unable to load one or more of the requested types. Retrieve the LoaderExceptions property for more information.
------------------------------------------
========================================
Stack trace
========================================
at System.Reflection.RuntimeModule.GetTypes(RuntimeModule module)
at System.Reflection.Assembly.GetTypes()
at System.Linq.Enumerable.<SelectManyIterator>d__17`2.MoveNext()
at System.Linq.Enumerable.WhereEnumerableIterator`1.MoveNext()
at MoreLinq.MoreEnumerable.ForEach[T](IEnumerable`1 source, Action`1 action)
at Origam.DA.Service.NamespaceMapping.PropertyToNamespaceMapping.Init()
at Origam.DA.Service.OrigamXmlLoader.LoadInto(ItemTracker itemTracker, MetaModelUpgradeMode mode)
at Origam.DA.Service.FilePersistenceIndex.<>c__DisplayClass31_0.<InitItemTracker>b__0()
at Origam.Extensions.ReaderWriterLockSlimExtensions.RunWriter(ReaderWriterLockSlim rwLock, Action action)
at Origam.Workbench.Services.FilePersistenceService..ctor(IMetaModelUpgradeService metaModelUpgradeService, IList`1 defaultFolders, String pathToRuntimeModelConfig, String basePath, Boolean watchFileChanges, Boolean useBinFile, Boolean checkRules, MetaModelUpgradeMode mode)
at Origam.OrigamEngine.FilePersistenceBuilder.CreateNewPersistenceService(Boolean watchFileChanges, Boolean checkRules, Boolean useBinFile)
at Origam.OrigamEngine.FilePersistenceBuilder.GetPersistenceService()
at OrigamArchitect.frmMain.LoadSchemaList()
at OrigamArchitect.frmMain.Connect(String configurationName)
===============================================
====== ORIGAM System Information
===============================================
Local Time: 2022-08-23T12:51:55.5076241+02:00
XSLT Date: 2022-08-23T00:00:00.0000000+02:00
Model Repository Information
===============================================
Model Format Version: 5.0.0
Not logged in to the model repository.
Loaded Packages (Model Version/Deployed Version)
===============================================
Model not loaded.
Activated Features
===============================================
Model not loaded.
Computer Information
===============================================
Current Directory: C:\WINDOWS\system32
Machine Name: LAPTOP-AEH5AV8H
OS Version: Microsoft Windows NT 6.2.9200.0
Product Version: 2022.2.0.2612
CLR Version: 4.0.30319.42000
System.data.dll Version: 4.8.4536.0 built by: NET48REL1LAST_C
Current Culture: English (United States)
Current Input Language: České
Memory Working Set: 367030272
System Directory: C:\WINDOWS\system32
Executable Path: C:\Program Files (x86)\ORIGAM\ORIGAM Architect (2022.2)\OrigamArchitect.exe
Application Data Path: C:\Users\david.pochobradsky\AppData\Roaming
Startup Path: C:\Program Files (x86)\ORIGAM\ORIGAM Architect (2022.2)
Authentication Information
===============================================
Identity Name: LAPTOP-AEH5AV8H\david.pochobradsky
Identity Authentication Type: NTLM
Profile Provider: Origam.Security.OrigamProfileProvider
The following exception occured while loading current user's profile:
Could not load user profile.
1. You were logged out after a long inactivity - try to log in again.
2. User account is not assigned in the system - please contact your administrator.
Role Information
===============================================
Authorization Provider: Origam.Security.OrigamDatabaseAuthorizationProvider
Resource Management Information
===============================================
Could not get resource information. The following error occured:
Cannot initialize rule engine. Model not loaded.
===============================================
====== Service Information
===============================================
Model is not loaded. Services are not available.
Exception when opening Business Logic folder (same for Postgres model and MsSql model)
========================================
Error
Error occured while reading child nodes of node 'czechmatecz\Business Logic'.
Error when loading objects from file: "c:\Users\david.pochobradsky\Workspace\03_CzechMate\czechmatecz\model\Root\Rule\Work Queue\ER_WQ_Unlock.origam"
========================================
Error when loading objects from file: "c:\Users\david.pochobradsky\Workspace\03_CzechMate\czechmatecz\model\Root\Rule\Work Queue\ER_WQ_Unlock.origam"
------------------------------------------
The given key was not present in the dictionary.
------------------------------------------
========================================
Stack trace
========================================
at System.ThrowHelper.ThrowKeyNotFoundException()
at System.Collections.Generic.Dictionary`2.get_Item(TKey key)
at Origam.DA.Service.AbstractInstanceCreator.RetrieveInstance(Guid id, IPersistenceProvider provider, Guid parentId)
at Origam.DA.Service.OrigamXmlManager.<LoadAllObjectsFromDisk>d__24.MoveNext()
at Origam.DA.Service.LocalizedObjectCache.AddRange(IEnumerable`1 newInstances)
at Origam.DA.Service.OrigamXmlManager.GetCachedObject(Guid id, IPersistenceProvider provider, Boolean useCache) at Origam.DA.Service.OrigamXmlManager.GetCachedObject(Guid id, IPersistenceProvider provider, Boolean useCache)
at Origam.DA.Service.OrigamXmlManager.LoadObject(Guid id, IPersistenceProvider provider, Boolean useCache)
at Origam.DA.Service.FilePersistenceProvider.RetrieveInstance(PersistedObjectInfo persistedObjInfo, Boolean useCache)
at System.Linq.Enumerable.WhereSelectEnumerableIterator`2.MoveNext()
at System.Linq.Enumerable.<CastIterator>d__97`1.MoveNext()
at System.Collections.Generic.List`1..ctor(IEnumerable`1 collection)
at System.Linq.Enumerable.ToList[TSource](IEnumerable`1 source)
at Origam.Schema.AbstractSchemaItemProvider.ChildItemsByType(String itemType)
at Origam.Schema.AbstractSchemaItemProvider.LoadChildItems()
at Origam.Schema.AbstractSchemaItemProvider.get_ChildItems()
at Origam.Schema.AbstractSchemaItemProvider.ChildNodes()
at Origam.Workbench.ExpressionBrowser.HasChildNodes(IBrowserNode node)
at Origam.Workbench.ExpressionBrowser.LoadTreeRecursive(TreeNode parentNode)
at Origam.Workbench.ExpressionBrowser.LoadTree(TreeNode parentNode)
===============================================
====== ORIGAM System Information
===============================================
Local Time: 2022-08-23T12:59:30.8210248+02:00
XSLT Date: 2022-08-23T00:00:00.0000000+02:00
Model Repository Information
===============================================
Model Format Version: 5.0.0
Loaded Packages (Model Version/Deployed Version)
===============================================
Root: 5.1.10/5.1.10
Audit: 1.0.0/1.0.0
Attachments: 1.0.0/1.0.0
Security: 5.4/5.4
Root Menu: 1.2.3/1.2.3
czechmatecz: 1.0.8/1.0.8
Activated Features
===============================================
IDENTITY_USER_MANAGEMENT
Computer Information
===============================================
Current Directory: C:\WINDOWS\system32
Machine Name: LAPTOP-AEH5AV8H
OS Version: Microsoft Windows NT 6.2.9200.0
Product Version: 2022.2.0.2612
CLR Version: 4.0.30319.42000
System.data.dll Version: 4.8.4536.0 built by: NET48REL1LAST_C
Current Culture: English (United States)
Current Input Language: Anglické (Spojené státy)
Memory Working Set: 511033344
System Directory: C:\WINDOWS\system32
Executable Path: C:\Program Files (x86)\ORIGAM\ORIGAM Architect (2022.2)\OrigamArchitect.exe
Application Data Path: C:\Users\david.pochobradsky\AppData\Roaming
Startup Path: C:\Program Files (x86)\ORIGAM\ORIGAM Architect (2022.2)
Authentication Information
===============================================
Identity Name: LAPTOP-AEH5AV8H\david.pochobradsky
Identity Authentication Type: NTLM
Profile Provider: Origam.Security.OrigamProfileProvider
Profile Id: df6ea0cd-e654-46fd-8046-b24479de798f
Profile Name: Architect (LAPTOP-AEH5AV8H\david.pochobradsky)
Profile Email:
Profile Resource Id: 00000000-0000-0000-0000-000000000000
Profile Business Unit Id: 00000000-0000-0000-0000-000000000000
Profile Organization Id: 00000000-0000-0000-0000-000000000000
Role Information
===============================================
Authorization Provider: Origam.Security.OrigamDatabaseAuthorizationProvider
Resource Management Information
===============================================
Could not get resource information. The following error occured:
Resource not found. Please assign the current user as a resource.
===============================================
====== Service Information
===============================================
DarkTracerService
===============================================
The following error occured while fetching service information:
Value cannot be null.
Parameter name: type
PdfPrintService
===============================================
The following error occured while fetching service information:
Value cannot be null.
Parameter name: type
DataService
===============================================
Adapter Assembly: Origam.Workflow.DataServiceAgent
Data Service Assembly: Origam.DA.Service.PgSqlDataService
Server: localhost
Port: 5432
Database: czechmatecz
Server Version: 14.3 (Debian 14.3-1.pgdg110+1)
Select Timeout: 60
Execute Procedure Timeout: 2000
Local Time: 8/23/2022 12:59:31 PM
Server Time: 8/23/2022 10:59:31 AM
Current User: czechmatecz
Session User: czechmatecz
DataTransformationService
===============================================
Origam.Workflow.TransformationAgent
EDIFACT2XMLService
===============================================
Origam.Workflow.EDIFACT2XMLServiceAgent
ExcelService
===============================================
The following error occured while fetching service information:
Value cannot be null.
Parameter name: type
FileService
===============================================
The following error occured while fetching service information:
Value cannot be null.
Parameter name: type
FileSystemService
===============================================
Origam.Workflow.FileSystemServiceAgent
HttpService
===============================================
Origam.Workflow.HttpServiceAgent
MailService
===============================================
Origam.Workflow.MailServiceAgent
ModelService
===============================================
Origam.Workflow.ModelServiceAgent
OperatingSystemService
===============================================
Origam.Workflow.OperatingSystemServiceAgent
ParameterService
===============================================
Origam.Workflow.ParameterServiceAgent
PrintService
===============================================
Origam.Workflow.PrintServiceAgent
ReportService
===============================================
Origam.Workflow.ReportServiceAgent
WorkflowService
===============================================
Origam.Workflow.WorkflowServiceAgent
WorkQueueService
===============================================
Origam.Workflow.WorkQueueServiceAgent
IdentityService
===============================================
The following error occured while fetching service information:
Exception has been thrown by the target of an invocation.